Versions in this module Expand all Collapse all v1 v1.0.0 Apr 9, 2022 Changes in this version + type Counter interface + Clear func() + Count func() int32 + Dec func(int32) + Inc func(int32) + Snapshot func() Counter + func NewCounter() Counter + type CounterMetric interface + Inc func() + type DateCounter interface + Clear func() + Dec func(int64) + GetLastDaysCount func(lastdays int64) []int64 + Inc func(int64) + Snapshot func() DateCounter + TodayCount func() int64 + func NewDateCounter(reserveDays int64) DateCounter + type GaugeMetric interface + Dec func() + Inc func() + Set func(float64) + type HistogramMetric interface + Observe func(float64) + type StandardCounter struct + func (c *StandardCounter) Clear() + func (c *StandardCounter) Count() int32 + func (c *StandardCounter) Dec(count int32) + func (c *StandardCounter) Inc(count int32) + func (c *StandardCounter) Snapshot() Counter + type StandardDateCounter struct + func (c *StandardDateCounter) Clear() + func (c *StandardDateCounter) Dec(count int64) + func (c *StandardDateCounter) GetLastDaysCount(lastdays int64) []int64 + func (c *StandardDateCounter) Inc(count int64) + func (c *StandardDateCounter) Snapshot() DateCounter + func (c *StandardDateCounter) TodayCount() int64