Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CallBack func(v *viper.Viper)
Functions ¶
Types ¶
type ConfigService ¶
type ConfigService interface { Init() *viper.Viper GetViper(v *viper.Viper) error Get() ([]byte, error) Watch(v *viper.Viper) Set(value string) error SetPath(key string) }
func NewEtcd ¶
func NewEtcd(conf *Config) (ConfigService, error)
func NewLocal ¶
func NewLocal(conf *Config) (ConfigService, error)
func NewZK ¶
func NewZK(conf *Config) (ConfigService, error)
Click to show internal directories.
Click to hide internal directories.