type github.com/gotd/td/telegram.CloseInvoker
40 uses
github.com/gotd/td/telegram (current package)
cdn_pool_manager.go#L15: conn CloseInvoker
cdn_pool_manager.go#L30: conn CloseInvoker
cdn_pool_manager.go#L34: var _ CloseInvoker = (*cdnPoolHandle)(nil)
cdn_pool_manager.go#L58: refs map[CloseInvoker]int
cdn_pool_manager.go#L63: closing map[CloseInvoker]bool
cdn_pool_manager.go#L68: closeQueue []CloseInvoker
cdn_pool_manager.go#L69: closePending []CloseInvoker
cdn_pool_manager.go#L85: refs: map[CloseInvoker]int{},
cdn_pool_manager.go#L86: closing: map[CloseInvoker]bool{},
cdn_pool_manager.go#L102: func pickCDNPool(pools []cachedCDNPool, need int64) (CloseInvoker, bool) {
cdn_pool_manager.go#L128: func (m *cdnPoolManager) cachedHandleLocked(conn CloseInvoker) CloseInvoker {
cdn_pool_manager.go#L143: func (m *cdnPoolManager) releaseCachedHandle(conn CloseInvoker) bool {
cdn_pool_manager.go#L161: func (m *cdnPoolManager) acquire(dc int, need int64) (CloseInvoker, bool) {
cdn_pool_manager.go#L172: func (m *cdnPoolManager) publishOrAcquire(dc int, need int64, created CloseInvoker) (CloseInvoker, bool) {
cdn_pool_manager.go#L197: func (m *cdnPoolManager) drain() []CloseInvoker {
cdn_pool_manager.go#L201: seen := map[CloseInvoker]struct{}{}
cdn_pool_manager.go#L202: cdnConns := make([]CloseInvoker, 0, len(m.conns)+len(m.closeQueue)+len(m.closePending))
cdn_pool_manager.go#L203: add := func(conn CloseInvoker) {
cdn_pool_manager.go#L225: m.refs = map[CloseInvoker]int{}
cdn_pool_manager.go#L226: m.closing = map[CloseInvoker]bool{}
cdn_pool_manager.go#L251: func (m *cdnPoolManager) enqueueCloseLocked(stale []CloseInvoker) {
cdn_pool_manager.go#L321: toClose := make([]CloseInvoker, 0, len(stale))
logout.go#L67: seen := map[CloseInvoker]struct{}{}
logout.go#L73: conns := make(map[int]CloseInvoker, len(cache.conns))
logout.go#L77: cache.conns = map[int]CloseInvoker{}
pool.go#L21: type CloseInvoker interface {
pool.go#L42: func (c *Client) Pool(max int64) (CloseInvoker, error) {
pool.go#L243: func (c *Client) DC(ctx context.Context, dc int, max int64) (CloseInvoker, error) {
pool.go#L249: func (c *Client) MediaOnly(ctx context.Context, dc int, max int64) (CloseInvoker, error) {
pool.go#L257: func (c *Client) CDN(ctx context.Context, dc int, max int64) (CloseInvoker, error) {
sub_conns.go#L21: conn CloseInvoker
sub_conns.go#L28: conns map[int]CloseInvoker
sub_conns.go#L38: conns: map[int]CloseInvoker{},
sub_conns.go#L53: func (p *dcPoolCache) drain() []CloseInvoker {
sub_conns.go#L56: conns := make([]CloseInvoker, 0, len(p.conns))
sub_conns.go#L60: p.conns = map[int]CloseInvoker{}
sub_conns.go#L66: func (p *dcPoolCache) evict(dc int, conn CloseInvoker) {
sub_conns.go#L131: func (c *Client) cachedDC(ctx context.Context, cache *dcPoolCache, dc int) (CloseInvoker, error) {
 |
The pages are generated with Golds v0.8.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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |