Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterByMode ¶
type CounterByMode struct { Counters map[string]metrics.Counter // contains filtered or unexported fields }
CounterByMode - container for mode counters, registry and flush interval
func NewModeCounter ¶
func NewModeCounter(modes []string) *CounterByMode
NewModeCounter - returns new counter instance
func (*CounterByMode) Count ¶
func (c *CounterByMode) Count(mode string)
Count - counts requests based on mode
func (*CounterByMode) Flush ¶
func (c *CounterByMode) Flush() (h Stats)
Flush gets current metrics from stats registry
Click to show internal directories.
Click to hide internal directories.