Versions in this module Expand all Collapse all v0 v0.29.3 Nov 7, 2020 v0.29.2 Nov 5, 2020 Changes in this version + type Counter interface + Clear func() + Count func() int64 + Dec func(int64) + Inc func(int64) + Snapshot func() Counter + func NewCounter() Counter + 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 StandardCounter struct + func (c *StandardCounter) Clear() + func (c *StandardCounter) Count() int64 + func (c *StandardCounter) Dec(count int64) + func (c *StandardCounter) Inc(count int64) + 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