Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultBackends ¶
Types ¶
type StoreClient ¶
type StoreClient interface { Get(nodePath string, dir bool) (interface{}, error) Put(nodePath string, value interface{}, replace bool) error // Delete // if the 'key' represent a dir, 'dir' should be true. Delete(nodePath string, dir bool) error Sync(store store.Store, stopChan chan bool) GetMapping(nodePath string, dir bool) (interface{}, error) PutMapping(nodePath string, mapping interface{}, replace bool) error DeleteMapping(nodePath string, dir bool) error SyncMapping(mapping store.Store, stopChan chan bool) }
The StoreClient interface is implemented by objects that can retrieve key/value pairs from a backend store.
func New ¶
func New(config Config) (StoreClient, error)
New is used to create a storage client based on our configuration.
Click to show internal directories.
Click to hide internal directories.