This commit is contained in:
11
internal/store/store.go
Normal file
11
internal/store/store.go
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user