Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EtcdConf ¶
type EtcdConf struct {
// contains filtered or unexported fields
}
func NewEtcd ¶
NewEtcd Etcd 配置
conf := viper.NewFile(
config.Endpoint("http://127.0.0.1:4001"), config.Path("/config/demo.json"), config.AddConfig( new(redis.Config), new(zap.Config), new(openObserve.Config), new(mysql.Config), ), config.Watcher(false), // true 开启监控,配置变更执行 Init()
) defer conf.Close()
type FileConf ¶
type FileConf struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.