Versions in this module Expand all Collapse all v0 v0.0.2 Oct 15, 2019 Changes in this version + type Option struct + Concurrency int + Prefix string v0.0.1 Oct 14, 2019 Changes in this version + type Counter struct + func NewCounter(collection *docstore.Collection, concurrency int) *Counter + func (c *Counter) Decrement(ctx context.Context, key CounterKey) error + func (c *Counter) Get(ctx context.Context, key CounterKey) (int, error) + func (c *Counter) Increment(ctx context.Context, key CounterKey) (int, error) + func (c *Counter) Register(ctx context.Context, key CounterKey) error + type CounterEntity struct + Count int + ID string + type CounterKey string