Documentation ¶
Index ¶
- Variables
- type Backend
- type Entry
- type LibKVStore
- func (s LibKVStore) AtomicPut(key string, value []byte, previous Pair, options *WriteOptions) (bool, Pair, error)
- func (s LibKVStore) Get(key string) (Pair, error)
- func (s LibKVStore) List(directory string) (result []Pair, err error)
- func (s LibKVStore) Put(key string, value []byte, options *WriteOptions) error
- type MockStore
- func (kv MockStore) AtomicPut(key string, value []byte, previous Pair, options *WriteOptions) (bool, Pair, error)
- func (kv MockStore) Get(key string) (Pair, error)
- func (kv MockStore) List(directory string) ([]Pair, error)
- func (kv MockStore) Put(key string, value []byte, options *WriteOptions) error
- type Pair
- type PairImpl
- type Query
- type Store
- type WriteOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound error = store.ErrKeyNotFound
Functions ¶
This section is empty.
Types ¶
type LibKVStore ¶
type LibKVStore struct {
// contains filtered or unexported fields
}
func (LibKVStore) AtomicPut ¶
func (s LibKVStore) AtomicPut(key string, value []byte, previous Pair, options *WriteOptions) (bool, Pair, error)
func (LibKVStore) Put ¶
func (s LibKVStore) Put(key string, value []byte, options *WriteOptions) error
type MockStore ¶
type MockStore struct { GetFunc func(string) (Pair, error) PutFunc func(key string, value []byte, options *WriteOptions) error ListFunc func(directory string) ([]Pair, error) AtomicPutFunc func(key string, value []byte, previous Pair, options *WriteOptions) (bool, Pair, error) }
type Store ¶
type WriteOptions ¶
type WriteOptions store.WriteOptions
Click to show internal directories.
Click to hide internal directories.