Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSyncerStats ¶
type ClientSyncerStats interface {
GetMetric(message.Request) (MessageMetric, error)
}
func NewClientSyncerStats ¶
func NewClientSyncerStats() ClientSyncerStats
NewClientSyncerStats returns stats for the client syncer
func NewNoOpStats ¶
func NewNoOpStats() ClientSyncerStats
func NewStats ¶
func NewStats(enabled bool) ClientSyncerStats
NewStats returns syncer stats if enabled or a no-op version if disabled.
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.