Documentation
¶
Index ¶
- func GetApolloConfigCache() agcache.CacheInterface
- func GetBoolValue(key string, defaultValue bool) bool
- 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 GetIntValue(key string, defaultValue int) int
- func GetStringValue(key string, defaultValue string) string
- func GetValue(key string) string
- func InitCustomConfig(loadAppConfig func() (*config.AppConfig, error))
- func SetCache(cacheFactory agcache.CacheFactory)
- func SetLogger(loggerInterface log.LoggerInterface)
- func Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApolloConfigCache ¶ added in v0.0.7
func GetApolloConfigCache() agcache.CacheInterface
GetApolloConfigCache 获取默认namespace的apollo配置
func GetConfigAndInit ¶ added in v1.5.2
GetConfigAndInit 根据namespace获取apollo配置
func GetConfigCache ¶ added in v1.5.2
func GetConfigCache(namespace string) agcache.CacheInterface
GetConfigCache 根据namespace获取apollo配置的缓存
func GetDefaultConfigCache ¶ added in v1.5.2
func GetDefaultConfigCache() agcache.CacheInterface
GetDefaultConfigCache 获取默认缓存
func GetFloatValue ¶
GetFloatValue 获取float配置值
func GetStringValue ¶
GetStringValue 获取string配置值
func InitCustomConfig ¶ added in v1.4.0
InitCustomConfig init config by custom
func SetCache ¶ added in v1.5.2
func SetCache(cacheFactory agcache.CacheFactory)
SetCache 设置自定义cache组件
func SetLogger ¶ added in v1.5.2
func SetLogger(loggerInterface log.LoggerInterface)
SetLogger 设置自定义logger组件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.