Versions in this module Expand all Collapse all v0 v0.1.0 Oct 2, 2019 Changes in this version + var DefaultConfig = Config + var DefaultEtcdConfig = EtcdConfig + var DefaultGlobalConfig = GlobalConfig + func Load(in string) error + func LoadFile(in string) error + func OnConfigChange(run func(in fsnotify.Event)) + func Set(fp string, l log.Logger) error + func SetConfig(newConf *Config) + func SetConfigPath(in string) + func SetConfigPermissions(perm os.FileMode) + func SetLogger(l log.Logger) + func Show() + func WatchConfig() + func Write() error + type BasicAuthentication struct + Password Secret + Username string + type Config struct + EtcdConfig EtcdConfig + GlobalConfig GlobalConfig + func Get() *Config + func (c *Config) String() string + func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error + type EtcdConfig struct + AutoSyncInterval time.Duration + DialKeepAliveTime time.Duration + DialKeepAliveTimeout time.Duration + DialTimeout time.Duration + Endpoints []string + MaxCallRecvMsgSize int + MaxCallSendMsgSize int + Password Secret + PermitWithoutStream bool + RejectOldCluster bool + TLS *tls.Config + Username string + func (c *EtcdConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type GlobalConfig struct + BasicAuthentication BasicAuthentication + RemoteHostPattern string + func (c *GlobalConfig) UnmarshalYAML(unmarshal func(interface{}) error) error + type Manager struct + Config *Config + func NewManager() *Manager + func (m *Manager) Get() *Config + func (m *Manager) Load(in string) error + func (m *Manager) LoadFile(in string) error + func (m *Manager) OnConfigChange(run func(in fsnotify.Event)) + func (m *Manager) Set(fp string, l log.Logger) error + func (m *Manager) SetConfig(newConf *Config) + func (m *Manager) SetConfigPath(in string) + func (m *Manager) SetConfigPermissions(perm os.FileMode) + func (m *Manager) SetLogger(l log.Logger) + func (m *Manager) Show() + func (m *Manager) WatchConfig() + func (m *Manager) Write() error + type Secret string + func (s *Secret) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s Secret) MarshalYAML() (interface{}, error) v0.1.0-legacy Oct 2, 2019