Versions in this module Expand all Collapse all v1 v1.0.0 Jan 5, 2022 Changes in this version + type Options struct + EtcdConf clientv3.Config + EtcdReadTimeOut time.Duration + LocalConfName string + UseLocal bool + WatchRootName []string + func (p *Options) UseLocalConf() bool + type Register interface + Close func() error + ConfByKey func(key string, val interface{}) error + Run func() error + func NewHConf(opt ...RegisterOptions) (Register, error) + type RegisterOptions func(*Options) + func SetEtcdConf(conf clientv3.Config) RegisterOptions + func SetEtcdReadTimeOut(t time.Duration) RegisterOptions + func SetLocalConfName(name string) RegisterOptions + func SetUseLocal() RegisterOptions + func SetWatchRootName(name []string) RegisterOptions