Documentation ¶
Index ¶
- type Counter
- func (c *Counter) Dec(key string)
- func (c *Counter) DecBy(key string, amt int)
- func (c *Counter) Delete(key string)
- func (c *Counter) Get(key string) (int, bool)
- func (c *Counter) Inc(key string)
- func (c *Counter) IncBy(key string, amt int)
- func (c *Counter) Reset(key string)
- func (c *Counter) Set(key string, to int)
- func (c *Counter) Start()
- func (c *Counter) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Counter tracks values for unique keys
func NewCounter ¶
func NewCounter() *Counter
Click to show internal directories.
Click to hide internal directories.