Versions in this module Expand all Collapse all v1 v1.0.1 Mar 8, 2024 v1.0.0 Mar 8, 2024 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