Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBackupFileHandler ¶
func SetBackupFileHandler(file file.FileHandler)
SetBackupFileHandler 设置自定义备份文件处理组件
func SetLoadBalance ¶
func SetLoadBalance(loadBalance cluster.LoadBalance)
SetLoadBalance 设置自定义负载均衡组件
Types ¶
type Client ¶
type Client interface {
GetConfig(namespace string) *storage.Config
GetConfigAndInit(namespace string) *storage.Config
GetConfigCache(namespace string) agcache.CacheInterface
GetDefaultConfigCache() agcache.CacheInterface
GetApolloConfigCache() agcache.CacheInterface
GetValue(key string) string
GetStringValue(key string, defaultValue string) string
GetIntValue(key string, defaultValue int) int
GetFloatValue(key string, defaultValue float64) float64
GetBoolValue(key string, defaultValue bool) bool
GetStringSliceValue(key string, defaultValue []string) []string
GetIntSliceValue(key string, defaultValue []int) []int
AddChangeListener(listener storage.ChangeListener)
RemoveChangeListener(listener storage.ChangeListener)
GetChangeListeners() *list.List
UseEventDispatch()
Close()
}
Client apollo 客户端接口
Click to show internal directories.
Click to hide internal directories.