MCPcopy
hub / github.com/grpc/grpc-go / SubChans

Method SubChans

internal/channelz/channel.go:70–74  ·  view source on GitHub ↗

SubChans returns a copy of the map of sub-channels associated with the Channel.

()

Source from the content-addressed store, hash-verified

68// SubChans returns a copy of the map of sub-channels associated with the
69// Channel.
70func (c *Channel) SubChans() map[int64]string {
71 db.mu.RLock()
72 defer db.mu.RUnlock()
73 return copyMap(c.subChans)
74}
75
76// NestedChans returns a copy of the map of nested channels associated with the
77// Channel.

Calls 1

copyMapFunction · 0.70