etcd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PREFIX_CONFIG = "/mconfig/"

PREFIX_CONFIG ...

Variables

This section is empty.

Functions

func Init

func Init(addr string) (pkg.AppConfigStore, error)

Init ...

func Prefix

func Prefix(prefix string, v string) string

Prefix ...

func RemovePrefix

func RemovePrefix(prefix string, v string) string

RemovePrefix ...

Types

type EtcdStore

type EtcdStore struct {
}

EtcdStore ...

func (EtcdStore) GetAppConfigs

func (e EtcdStore) GetAppConfigs(key string) (pkg.AppConfigsJSONStr, int64, error)

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

func (e EtcdStore) WatchAppConfigsWithPrefix(ctx context.Context) (chan *pkg.ConfigEvent, error)

WatchAppConfigsWithPrefix ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL