Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StoreClient ¶
type StoreClient interface { Client() *zk.Conn GetValues(keys []string) (map[string]string, error) WatchPrefix(keys []string, waitIndex uint64, stopChan chan bool) (uint64, error) Lock(path string) *zk.Lock Add(path string, value []byte, flags int32) (string, error) Modify(path string, value []byte) error Delete(path string) error }
The StoreClient interface is implemented by objects that can retrieve key/value pairs from a backend store.
func New ¶
func New(conf StoreConfig) (StoreClient, error)
New is used to create a storage client based on our configuration.
func NewMock ¶
func NewMock(conf StoreConfig) (StoreClient, error)
type StoreConfig ¶
Click to show internal directories.
Click to hide internal directories.