store

package
v0.7.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotExist = errors.New("key not exist")

Functions

func InitKvStore

func InitKvStore(cfg config.StoreConfig) (err error)

func WithKVStore added in v0.7.6

func WithKVStore(ctx context.Context, store KVStore) context.Context

Types

type KVStore

type KVStore interface {
	Set(ctx context.Context, key string, value []byte) error
	Get(ctx context.Context, key string) ([]byte, error)
	Delete(ctx context.Context, key string) error
	Close() error
}

func FromContext added in v0.7.6

func FromContext(ctx context.Context) KVStore

func GetKVStore

func GetKVStore() KVStore

func NewConnectorStore added in v0.7.6

func NewConnectorStore(connectorID string) KVStore

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL