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

Method Sockets

internal/channelz/subchannel.go:51–55  ·  view source on GitHub ↗

Sockets returns a copy of the sockets map associated with the SubChannel.

()

Source from the content-addressed store, hash-verified

49
50// Sockets returns a copy of the sockets map associated with the SubChannel.
51func (sc *SubChannel) Sockets() map[int64]string {
52 db.mu.RLock()
53 defer db.mu.RUnlock()
54 return copyMap(sc.sockets)
55}
56
57// Trace returns a copy of the ChannelTrace associated with the SubChannel.
58func (sc *SubChannel) Trace() *ChannelTrace {

Calls 1

copyMapFunction · 0.70