Documentation ¶
Index ¶
- Variables
- func DefaultStore(cfg *config.Config) (client.KeysAPI, error)
- func FlattenToKVBytes(n *client.Node, nodes stores.KVBytes) stores.KVBytes
- func New(cfg *config.Config) stores.IFace
- type Store
- func (s *Store) Close()
- func (s *Store) Delete(key string) error
- func (s *Store) Get(key string) (*stores.KVByte, error)
- func (s *Store) Init()
- func (s *Store) List(prefix string) (stores.KVBytes, error)
- func (s *Store) Register(cb func(kvb stores.KVBytes))
- func (s *Store) Set(key string, bts []byte) error
- func (s *Store) Updated(kvs interface{})
- func (s *Store) Watch() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultEndpoints = []string{"http://127.0.0.1:2379"} ReconnectTime = 2 * time.Second )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.