Versions in this module Expand all Collapse all v0 v0.8.698 Aug 29, 2017 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