Documentation ¶
Index ¶
- Constants
- func New(addrs []string, options *store.Config) (store.Store, error)
- func Register()
- type Local
- func (l *Local) AtomicDelete(key string, previous *store.KVPair) (bool, error)
- func (l *Local) AtomicPut(key string, value []byte, previous *store.KVPair, opts *store.WriteOptions) (bool, *store.KVPair, error)
- func (l *Local) Close()
- func (l *Local) Delete(key string) error
- func (l *Local) DeleteTree(prefix string) error
- func (l *Local) Exists(key string) (bool, error)
- func (l *Local) Get(key string) (*store.KVPair, error)
- func (l *Local) List(prefix string) ([]*store.KVPair, error)
- func (l *Local) NewLock(key string, options *store.LockOptions) (store.Locker, error)
- func (l *Local) Put(key string, value []byte, opts *store.WriteOptions) error
- func (l *Local) Watch(key string, stopCh <-chan struct{}) (<-chan *store.KVPair, error)
- func (l *Local) WatchTree(prefix string, stopCh <-chan struct{}) (<-chan []*store.KVPair, error)
Constants ¶
View Source
const LOCAL = "local"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Local ¶
type Local struct { // Endpoints passed to InitializeMock Endpoints []string // Options passed to InitializeMock Options *store.Config }
Local "libkv" store.
func (*Local) AtomicDelete ¶
AtomicDelete is not implemented
func (*Local) AtomicPut ¶
func (l *Local) AtomicPut(key string, value []byte, previous *store.KVPair, opts *store.WriteOptions) (bool, *store.KVPair, error)
AtomicPut is not implemented
Click to show internal directories.
Click to hide internal directories.