Documentation ¶
Index ¶
- func Close()
- func DecodePrivate(key string, v interface{}) error
- func DecodePublic(key string, v interface{}) error
- func NewConfig(opts ...Options) error
- func PutPrivate(key, value string) error
- func PutPublic(key, value string) error
- type Option
- type Options
- func Backup(path string) Options
- func Chaos(f ...func() error) Options
- func DisableDynamic() Options
- func LocalFile() Options
- func LogOut() Options
- func Prefix(prefix string) Options
- func Private(private string) Options
- func Public(public string) Options
- func Schema(schema string) Options
- func Version(version string) Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodePrivate ¶ added in v0.2.4
DecodePrivate decode data to config and config will be updated when etcd watch change.
func DecodePublic ¶ added in v0.2.4
DecodePublic decode data to config and config will be updated when etcd watch change.
func PutPrivate ¶ added in v1.0.6
PutPrivate put private key value to etcd and cache data
Types ¶
Click to show internal directories.
Click to hide internal directories.