Versions in this module Expand all Collapse all v1 v1.0.2 Oct 26, 2020 v1.0.1 Nov 18, 2020 v1.0.0 Oct 26, 2020 v0 v0.0.3 Nov 18, 2020 v0.0.2 Nov 17, 2020 v0.0.1 Nov 16, 2020 Changes in this version + var EntryPerPage = int64(50) + func AddTraceEvent(id int64, depth int, desc *TraceEventDesc) + func Error(id int64, args ...interface{}) + func Errorf(id int64, format string, args ...interface{}) + func Info(id int64, args ...interface{}) + func Infof(id int64, format string, args ...interface{}) + func IsOn() bool + func NewChannelzStorage() (cleanup func() error) + func RegisterChannel(c Channel, pid int64, ref string) int64 + func RegisterListenSocket(s Socket, pid int64, ref string) int64 + func RegisterNormalSocket(s Socket, pid int64, ref string) int64 + func RegisterServer(s Server, ref string) int64 + func RegisterSubChannel(c Channel, pid int64, ref string) int64 + func RemoveEntry(id int64) + func ResetMaxTraceEntryToDefault() + func SetMaxTraceEntry(i int32) + func TurnOn() + func Warning(id int64, args ...interface{}) + func Warningf(id int64, format string, args ...interface{}) + type Channel interface + ChannelzMetric func() *ChannelInternalMetric + type ChannelInternalMetric struct + CallsFailed int64 + CallsStarted int64 + CallsSucceeded int64 + LastCallStartedTimestamp time.Time + State connectivity.State + Target string + type ChannelMetric struct + ChannelData *ChannelInternalMetric + ID int64 + NestedChans map[int64]string + RefName string + Sockets map[int64]string + SubChans map[int64]string + Trace *ChannelTrace + func GetChannel(id int64) *ChannelMetric + func GetTopChannels(id int64, maxResults int64) ([]*ChannelMetric, bool) + type ChannelTrace struct + CreationTime time.Time + EventNum int64 + Events []*TraceEvent + type RefChannelType int + const RefChannel + const RefSubChannel + type Server interface + ChannelzMetric func() *ServerInternalMetric + type ServerInternalMetric struct + CallsFailed int64 + CallsStarted int64 + CallsSucceeded int64 + LastCallStartedTimestamp time.Time + type ServerMetric struct + ID int64 + ListenSockets map[int64]string + RefName string + ServerData *ServerInternalMetric + func GetServer(id int64) *ServerMetric + func GetServers(id int64, maxResults int64) ([]*ServerMetric, bool) + type Severity int + const CtError + const CtINFO + const CtUNKNOWN + const CtWarning + type Socket interface + ChannelzMetric func() *SocketInternalMetric + type SocketInternalMetric struct + KeepAlivesSent int64 + LastLocalStreamCreatedTimestamp time.Time + LastMessageReceivedTimestamp time.Time + LastMessageSentTimestamp time.Time + LastRemoteStreamCreatedTimestamp time.Time + LocalAddr net.Addr + LocalFlowControlWindow int64 + MessagesReceived int64 + MessagesSent int64 + RemoteAddr net.Addr + RemoteFlowControlWindow int64 + RemoteName string + Security credentials.ChannelzSecurityValue + SocketOptions *SocketOptionData + StreamsFailed int64 + StreamsStarted int64 + StreamsSucceeded int64 + type SocketMetric struct + ID int64 + RefName string + SocketData *SocketInternalMetric + func GetServerSockets(id int64, startID int64, maxResults int64) ([]*SocketMetric, bool) + func GetSocket(id int64) *SocketMetric + type SocketOptionData struct + Linger *unix.Linger + RecvTimeout *unix.Timeval + SendTimeout *unix.Timeval + TCPInfo *unix.TCPInfo + func GetSocketOption(c interface{}) *SocketOptionData + func GetSocketOption(socket interface{}) *SocketOptionData + func (s *SocketOptionData) Getsockopt(fd uintptr) + type SubChannelMetric struct + ChannelData *ChannelInternalMetric + ID int64 + NestedChans map[int64]string + RefName string + Sockets map[int64]string + SubChans map[int64]string + Trace *ChannelTrace + func GetSubChannel(id int64) *SubChannelMetric + type TraceEvent struct + Desc string + RefID int64 + RefName string + RefType RefChannelType + Severity Severity + Timestamp time.Time + type TraceEventDesc struct + Desc string + Parent *TraceEventDesc + Severity Severity