Documentation ¶
Index ¶
- func AddChangeListener(listener storage.ChangeListener)
- func GetApolloConfigCache() agcache.CacheInterface
- func GetBoolValue(key string, defaultValue bool) bool
- func GetChangeListeners() *list.List
- func GetConfig(namespace string) *storage.Config
- func GetConfigAndInit(namespace string) *storage.Config
- func GetConfigCache(namespace string) agcache.CacheInterface
- func GetDefaultConfigCache() agcache.CacheInterface
- func GetFloatValue(key string, defaultValue float64) float64
- func GetIntSliceValue(key string, defaultValue []int) []int
- func GetIntValue(key string, defaultValue int) int
- func GetStringSliceValue(key string, defaultValue []string) []string
- func GetStringValue(key string, defaultValue string) string
- func GetValue(key string) string
- func InitCustomConfig(loadAppConfig func() (*config.AppConfig, error))
- func RemoveChangeListener(listener storage.ChangeListener)
- func SetBackupFileHandler(file file.FileHandler)
- func SetCache(cacheFactory agcache.CacheFactory)
- func SetLoadBalance(loadBalance cluster.LoadBalance)
- func SetLogger(loggerInterface log.LoggerInterface)
- func SetSignature(auth auth.HTTPAuth)
- func Start() error
- func UseEventDispatch()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChangeListener ¶ added in v3.4.1
func AddChangeListener(listener storage.ChangeListener)
AddChangeListener 增加变更监控
func GetApolloConfigCache ¶
func GetApolloConfigCache() agcache.CacheInterface
GetApolloConfigCache 获取默认namespace的apollo配置
func GetChangeListeners ¶ added in v3.4.1
GetChangeListeners 获取配置修改监听器列表
func GetConfigAndInit ¶
GetConfigAndInit 根据namespace获取apollo配置
func GetConfigCache ¶
func GetConfigCache(namespace string) agcache.CacheInterface
GetConfigCache 根据namespace获取apollo配置的缓存
func GetDefaultConfigCache ¶
func GetDefaultConfigCache() agcache.CacheInterface
GetDefaultConfigCache 获取默认缓存
func GetFloatValue ¶
GetFloatValue 获取float配置值
func GetIntSliceValue ¶ added in v3.4.0
GetIntSliceValue 获取[]int 配置值
func GetStringSliceValue ¶ added in v3.4.0
GetStringSliceValue 获取[]string 配置值
func GetStringValue ¶
GetStringValue 获取string配置值
func InitCustomConfig ¶
InitCustomConfig init config by custom
func RemoveChangeListener ¶ added in v3.4.1
func RemoveChangeListener(listener storage.ChangeListener)
RemoveChangeListener 增加变更监控
func SetBackupFileHandler ¶ added in v3.1.0
func SetBackupFileHandler(file file.FileHandler)
SetBackupFileHandler 设置自定义备份文件处理组件
func SetLoadBalance ¶ added in v3.1.0
func SetLoadBalance(loadBalance cluster.LoadBalance)
SetLoadBalance 设置自定义负载均衡组件
func SetSignature ¶ added in v3.2.0
SetSignature 设置自定义 http 授权控件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.