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) Close() }
func LocalLockers ¶
func LocalLockers() Lockers
type LockersBuilder ¶ added in v1.2.0
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) Remove(ctx context.Context, key []byte) (err error) Incr(ctx context.Context, key []byte, delta int64) (v int64, err error) Expire(ctx context.Context, key []byte, ttl time.Duration) (err error) Close() }
type StoreBuilder ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.