Files
sablier/pkg/store/store.go
Alexis Couvreur 9430cc3eb3 chore(deps): bump to go1.24.0 (#521)
* chore(deps): bump to go1.24.0

* use proxy-wasm/proxy-wasm-go-sdk

* remove tinygo

* update docker image

* add missing env

* use go tool directive for mockgen

* chore: bump Kong/ngx_wasm_module to pre-release 0.6.0

Thanks to https://github.com/Kong/ngx_wasm_module/issues/682

* fix go mod

* set caddy to go1.23
2025-03-01 15:12:54 -05:00

20 lines
483 B
Go

package store
import (
"context"
"errors"
"github.com/sablierapp/sablier/app/instance"
"time"
)
var ErrKeyNotFound = errors.New("key not found")
//go:generate go tool mockgen -package storetest -source=store.go -destination=storetest/mocks_store.go *
type Store interface {
Get(context.Context, string) (instance.State, error)
Put(context.Context, instance.State, time.Duration) error
Delete(context.Context, string) error
OnExpire(context.Context, func(string)) error
}