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

Struct Channel

internal/channelz/channel.go:30–49  ·  view source on GitHub ↗

Channel represents a channel within channelz, which includes metrics and internal channelz data, such as channelz id, child list, etc.

Source from the content-addressed store, hash-verified

28// Channel represents a channel within channelz, which includes metrics and
29// internal channelz data, such as channelz id, child list, etc.
30type Channel struct {
31 Entity
32 // ID is the channelz id of this channel.
33 ID int64
34 // RefName is the human readable reference string of this channel.
35 RefName string
36
37 closeCalled bool
38 nestedChans map[int64]string
39 subChans map[int64]string
40 Parent *Channel
41 trace *ChannelTrace
42 // traceRefCount is the number of trace events that reference this channel.
43 // Non-zero traceRefCount means the trace of this channel cannot be deleted.
44 traceRefCount int32
45
46 // ChannelMetrics holds connectivity state, target and call metrics for the
47 // channel within channelz.
48 ChannelMetrics ChannelMetrics
49}
50
51// Implemented to make Channel implement the Identifier interface used for
52// nesting.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected