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

Struct SubChannel

internal/channelz/subchannel.go:27–40  ·  view source on GitHub ↗

SubChannel is the channelz representation of a subchannel.

Source from the content-addressed store, hash-verified

25
26// SubChannel is the channelz representation of a subchannel.
27type SubChannel struct {
28 Entity
29 // ID is the channelz id of this subchannel.
30 ID int64
31 // RefName is the human readable reference string of this subchannel.
32 RefName string
33 closeCalled bool
34 sockets map[int64]string
35 parent *Channel
36 trace *ChannelTrace
37 traceRefCount int32
38
39 ChannelMetrics ChannelMetrics
40}
41
42func (sc *SubChannel) String() string {
43 return fmt.Sprintf("%s SubChannel #%d", sc.parent, sc.ID)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected