type github.com/gotd/td/internal/pool.DC
13 uses
github.com/gotd/td/internal/pool (current package)
pool.go#L17: type DC struct {
pool.go#L53: func NewDC(ctx context.Context, id int, newConn func() Conn, opts DCOptions) *DC {
pool.go#L57: return &DC{
pool.go#L70: func (c *DC) createConnection(id int64) *poolConn {
pool.go#L87: func (c *DC) dead(r *poolConn, deadErr error) {
pool.go#L126: func (c *DC) pop() (r *poolConn, ok bool) {
pool.go#L137: func (c *DC) release(r *poolConn) {
pool.go#L155: func (c *DC) acquire(ctx context.Context) (r *poolConn, err error) { // nolint:gocyclo
pool.go#L240: func (c *DC) Invoke(ctx context.Context, input bin.Encoder, output bin.Decoder) error {
pool.go#L269: func (c *DC) Close() error {
pool_conn.go#L27: dc *DC // immutable
github.com/gotd/td/telegram
pool.go#L24: func (c *Client) createPool(dc int, max int64, creator func() pool.Conn) (*pool.DC, error) {
pool.go#L52: func (c *Client) dc(ctx context.Context, dcID int, max int64, dialer mtproto.Dialer) (*pool.DC, error) {
|
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. |