Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorNotFound = errors.New("talaria/kv: values not found for key")
ErrorNotFound is returned by a key value store that has no value for a key.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface {
Get(ctx context.Context, key string) ([]byte, error)
Put(ctx context.Context, key string, value []byte) error
Delete(ctx context.Context, key string) error
}
Store is a key-value store abstraction
func NewBoltStore ¶
NewBoltStore is a simple boltdb based key-value store
func NewMemStore ¶
func NewMemStore() Store
Click to show internal directories.
Click to hide internal directories.