SubChannel is the channelz representation of a subchannel.
| 25 | |
| 26 | // SubChannel is the channelz representation of a subchannel. |
| 27 | type 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 | |
| 42 | func (sc *SubChannel) String() string { |
| 43 | return fmt.Sprintf("%s SubChannel #%d", sc.parent, sc.ID) |
nothing calls this directly
no outgoing calls
no test coverage detected