Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientSyncerStats ¶
NewClientSyncerStats returns stats for the client syncer
Types ¶
type ClientSyncerStats ¶
type ClientSyncerStats interface {
GetMetric(message.Request) (MessageMetric, error)
}
func NewNoOpStats ¶
func NewNoOpStats() ClientSyncerStats
type MessageMetric ¶
type MessageMetric interface {
IncRequested()
IncSucceeded()
IncFailed()
IncInvalidResponse()
IncReceived(int64)
UpdateRequestLatency(time.Duration)
}
func NewMessageMetric ¶
func NewMessageMetric(name string) MessageMetric
Click to show internal directories.
Click to hide internal directories.