Source File
tl_client_gen.go
Belonging Package
github.com/gotd/td/tg
// Code generated by gotdgen, DO NOT EDIT.package tgimport ()// No-op definition for keeping imports.var (_ = bin.Buffer{}_ = context.Background()_ = fmt.Stringer(nil)_ = strings.Builder{}_ = errors.Is_ = multierr.AppendInto_ = sort.Ints_ = tdp.Format_ = tgerr.Error{}_ = tdjson.Encoder{})// Invoker can invoke raw MTProto rpc calls.type Invoker interface {Invoke(ctx context.Context, input bin.Encoder, output bin.Decoder) error}// Client implement methods for calling functions from TL schema via Invoker.type Client struct {rpc Invoker}// Invoker returns Invoker used by this client.func ( *Client) () Invoker {return .rpc}// NewClient creates new Client.func ( Invoker) *Client {return &Client{rpc: ,}}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |