Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigContainer = &container{ Path: "", Instances: make(map[string]interface{}), Versions: make(map[string]string), UpdateInterval: 1, UpdateChannel: make(chan string), UpdateTickers: make(map[string]*time.Ticker), UpdateFunc: make(map[string][]HandleFunc), ConfigCenter: ¢er{ Enable: false, NacosClient: nil, Listeners: make(listeners), }, }
Functions ¶
func ListenConf ¶ added in v0.0.19
func ListenConf(confs []string, handler HandleFunc)
ListenConf 监听配置变化
Types ¶
type ConfigInterface ¶ added in v0.0.11
type ConfigInterface interface {
ConfigName() string
}
type HandleFunc ¶ added in v0.0.19
type HandleFunc func()
Click to show internal directories.
Click to hide internal directories.