Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddListener ¶
func AddListener(cc DynamicConfigurationFactory, conf *config.ConfigCenterConfig, listener ConfigurationListener)
AddListener add config center listener
func LoadConfigCenterConfig ¶
func LoadConfigCenterConfig(cc DynamicConfigurationFactory, conf *config.ConfigCenterConfig, listener ConfigurationListener) string
LoadConfigCenterConfig load config center config
Types ¶
type ConfigChangeEvent ¶
type ConfigChangeEvent struct { Key string Value interface{} }
ConfigChangeEvent
type ConfigurationListener ¶
type ConfigurationListener interface { // Process the notification event once there's any change happens on the config Process(*ConfigChangeEvent) }
ConfigurationListener
type DynamicConfigurationFactory ¶
type DynamicConfigurationFactory interface { GetConfig(conf *config.ConfigCenterConfig) string //返回配置信息 AddListener(conf *config.ConfigCenterConfig, listener ConfigurationListener) //添加配置监听 Stop() error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.