Versions in this module Expand all Collapse all v0 v0.0.2 Nov 22, 2018 v0.0.1 Nov 9, 2018 Changes in this version + func ReadConfig(cfgFile string) error + func Unmarshal(dest interface{}) error + func UnmarshalConfig(cfgFile string, dest interface{}) (err error) + func WatchRemoteConfig(opt *RemoteConfigOption) (<-chan struct{}, error) + type RemoteConfigOption struct + ConfigType string + Endpoint string + Path string + Provider RemoteProvider + type RemoteProvider string + const Consul + const Etcd + type VConfig struct + func NewVConfig() *VConfig + func (vc *VConfig) ReadConfig(cfgFile string) error + func (vc *VConfig) Unmarshal(dest interface{}) error + func (vc *VConfig) UnmarshalConfig(cfgFile string, dest interface{}) (err error) + func (vc *VConfig) WatchRemoteConfig(opt *RemoteConfigOption) (<-chan struct{}, error)