Documentation ¶
Overview ¶
Package pool contains Telegram connections pool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnDead = xerrors.New("connection dead")
ErrConnDead means that connection is closed and can't be used anymore.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { Run(ctx context.Context) error InvokeRaw(ctx context.Context, input bin.Encoder, output bin.Decoder) error Ready() <-chan struct{} }
Conn represents Telegram MTProto connection.
Click to show internal directories.
Click to hide internal directories.