12 lines
299 B
Go
12 lines
299 B
Go
package store
|
|
|
|
import "context"
|
|
|
|
type CounterStore interface {
|
|
Init(ctx context.Context) error
|
|
Increment(ctx context.Context, slug string) (int64, error)
|
|
Get(ctx context.Context, slug string) (int64, error)
|
|
GetMany(ctx context.Context, slugs []string) (map[string]int64, error)
|
|
Close() error
|
|
}
|