Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLockTimeout = fmt.Errorf("fns: shared lockers lock timeout failed")
)
Functions ¶
func RegisterLocalStoreBuild ¶
func RegisterLocalStoreBuild(build LocalStoreBuild)
Types ¶
type DefaultLocalSharedStoreConfig ¶
type DefaultLocalSharedStoreConfig struct {
}type LocalSharedConfig ¶
type LocalSharedConfig struct {
}type LocalStoreBuild ¶
type Lockers ¶
type Lockers interface {
Acquire(ctx context.Context, key []byte, ttl time.Duration) (locker Locker, err error)
}
func LocalLockers ¶
func LocalLockers() Lockers
type Store ¶
type Store interface { Get(ctx context.Context, key []byte) (value []byte, has bool, err error) Set(ctx context.Context, key []byte, value []byte) (err error) SetWithTTL(ctx context.Context, key []byte, value []byte, ttl time.Duration) (err error) Incr(ctx context.Context, key []byte, delta int64) (v int64, err error) Remove(ctx context.Context, key []byte) (err error) Close() }
Click to show internal directories.
Click to hide internal directories.