Documentation
¶
Index ¶
- func Decode2Config(key string, v interface{}) error
- func GetPrefix() string
- func NewConfig(opts ...Options) error
- type Option
- type Options
- func Backup(path string) Options
- func Chaos(f ...func() error) Options
- func DisableDynamic() Options
- func LocalFile() 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 Decode2Config ¶
decode data to config and config will be updated when etcd watch change.
Types ¶
Click to show internal directories.
Click to hide internal directories.