Documentation ¶
Index ¶
- Constants
- func Init(addr string) (pkg.AppConfigStore, error)
- func Prefix(prefix string, v string) string
- func RemovePrefix(prefix string, v string) string
- type EtcdStore
- func (e EtcdStore) GetAppConfigs(key string) (pkg.AppConfigsJSONStr, int64, error)
- func (e EtcdStore) PutAppConfigs(key string, value pkg.AppConfigsJSONStr) error
- func (e EtcdStore) WatchAppConfigs(key string, rev int64, ctx context.Context) (chan *pkg.ConfigEvent, error)
- func (e EtcdStore) WatchAppConfigsWithPrefix(ctx context.Context) (chan *pkg.ConfigEvent, error)
Constants ¶
View Source
const PREFIX_CONFIG = "/mconfig/"
PREFIX_CONFIG ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EtcdStore ¶
type EtcdStore struct { }
EtcdStore ...
func (EtcdStore) GetAppConfigs ¶
GetAppConfigs ...
func (EtcdStore) PutAppConfigs ¶
func (e EtcdStore) PutAppConfigs(key string, value pkg.AppConfigsJSONStr) error
PutAppConfigs ...
func (EtcdStore) WatchAppConfigs ¶
func (e EtcdStore) WatchAppConfigs(key string, rev int64, ctx context.Context) (chan *pkg.ConfigEvent, error)
WatchAppConfigs ...
func (EtcdStore) WatchAppConfigsWithPrefix ¶
WatchAppConfigsWithPrefix ...
Click to show internal directories.
Click to hide internal directories.