Versions in this module Expand all Collapse all v0 v0.1.0 Jul 8, 2015 Changes in this version + const EndpointKeyPrefix + const NetworkKeyPrefix + var ErrKeyModified = store.ErrKeyModified + var ErrKeyNotFound = store.ErrKeyNotFound + var ErrNotImplmented = errors.New("Functionality not implemented") + func Key(key ...string) string + func ParseKey(key string) ([]string, error) + type DataStore interface + DeleteObject func(kvObject KV) error + DeleteObjectAtomic func(kvObject KV) error + DeleteTree func(kvObject KV) error + GetObject func(key string, o KV) error + KVStore func() store.Store + PutObject func(kvObject KV) error + PutObjectAtomic func(kvObject KV) error + func NewCustomDataStore(customStore store.Store) DataStore + func NewDataStore(cfg *config.DatastoreCfg) (DataStore, error) + type KV interface + Exists func() bool + Index func() uint64 + Key func() []string + KeyPrefix func() []string + SetIndex func(uint64) + SetValue func([]byte) error + Value func() []byte + type MockData struct + Data []byte + Index uint64 + type MockStore struct + func NewMockStore() *MockStore + func (s *MockStore) AtomicDelete(key string, previous *store.KVPair) (bool, error) + func (s *MockStore) AtomicPut(key string, newValue []byte, previous *store.KVPair, ...) (bool, *store.KVPair, error) + func (s *MockStore) Close() + func (s *MockStore) Delete(key string) error + func (s *MockStore) DeleteTree(prefix string) error + func (s *MockStore) Exists(key string) (bool, error) + func (s *MockStore) Get(key string) (*store.KVPair, error) + func (s *MockStore) List(prefix string) ([]*store.KVPair, error) + func (s *MockStore) NewLock(key string, options *store.LockOptions) (store.Locker, error) + func (s *MockStore) Put(key string, value []byte, options *store.WriteOptions) error + func (s *MockStore) Watch(key string, stopCh <-chan struct{}) (<-chan *store.KVPair, error) + func (s *MockStore) WatchTree(prefix string, stopCh <-chan struct{}) (<-chan []*store.KVPair, error)