Versions in this module Expand all Collapse all v0 v0.1.0 Jun 24, 2017 Changes in this version + type ConfEvent struct + Content []byte + Key string + Type ConfEventType + type ConfEventType int + const ConfDelete + const ConfPut + type ConfItem struct + Content []byte + Key string + type ConfStore interface + Close func() error + Delete func(key string) error + List func() (data []ConfItem, err error) + Put func(key string, value []byte) error + SkipNext func(key string) + Updates func() <-chan ConfEvent + type DiskStore struct + Location string + func NewDiskStore(location string) (cs *DiskStore, err error) + func (cs *DiskStore) Close() error + func (cs *DiskStore) Delete(key string) error + func (cs *DiskStore) List() (data []ConfItem, err error) + func (cs *DiskStore) Put(key string, content []byte) error + func (cs *DiskStore) Updates() <-chan ConfEvent + type Etcd3Store struct + Prefix string + func NewEtcd3Store(endpoint, prefix string) (cs *Etcd3Store, err error) + func (cs *Etcd3Store) Close() error + func (cs *Etcd3Store) Delete(key string) error + func (cs *Etcd3Store) List() (data []ConfItem, err error) + func (cs *Etcd3Store) Put(key string, value []byte) error + func (cs *Etcd3Store) Updates() <-chan ConfEvent + type Syncer struct + LocalStore ConfStore + RemoteStore ConfStore + func (s *Syncer) AddLocalConfToRemoteStore() error + func (s *Syncer) KeepInSync() + func (s *Syncer) PullFromRemote() error