Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiTypeToName = map[ApiType]string{ Sync: "Sync", AnalyzerSync: "AnalyzerSync", Upgrade: "Upgrade", Query: "Query", GetKubernetesClusterID: "GetKubernetesClusterID", GenesisSync: "GenesisSync", KubernetesAPISync: "KubernetesAPISync", GPIDSync: "GPIDSync", }
Functions ¶
func AddGPIDReceiveCounter ¶
func AddGPIDReceiveCounter(count uint64)
func AddGPIDSendCounter ¶
func AddGPIDSendCounter(count uint64)
func AddGrpcCostStatsd ¶
Types ¶
type Counter ¶
type Counter struct { ReqCount uint64 `statsd:"req_count"` AvgDelay uint64 `statsd:"avg_delay"` MaxDelay uint64 `statsd:"max_delay"` SumDelay uint64 }
func (*Counter) AddCostTime ¶
type GPIDCounter ¶
type GPIDCounter struct {
*GCounter
}
func NewGPIDCounter ¶
func NewGPIDCounter() *GPIDCounter
func (*GPIDCounter) Closed ¶
func (g *GPIDCounter) Closed() bool
func (*GPIDCounter) GetCounter ¶
func (g *GPIDCounter) GetCounter() interface{}
type GrpcCounter ¶
type GrpcCounter struct {
*Counter
}
func NewGrpcCounter ¶
func NewGrpcCounter() *GrpcCounter
func (*GrpcCounter) Closed ¶
func (g *GrpcCounter) Closed() bool
func (*GrpcCounter) GetCounter ¶
func (g *GrpcCounter) GetCounter() interface{}
Click to show internal directories.
Click to hide internal directories.