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

Function GetSubChannel

internal/channelz/funcs.go:96–98  ·  view source on GitHub ↗

GetSubChannel returns the SubChannel for the subchannel (identified by id).

(id int64)

Source from the content-addressed store, hash-verified

94
95// GetSubChannel returns the SubChannel for the subchannel (identified by id).
96func GetSubChannel(id int64) *SubChannel {
97 return db.getSubChannel(id)
98}
99
100// GetSocket returns the Socket for the socket (identified by id).
101func GetSocket(id int64) *Socket {

Calls 1

getSubChannelMethod · 0.80