Documentation ¶
Index ¶
- func GetAppConfig(newAppConfig *config.AppConfig) *config.AppConfig
- func GetConfigFileExecutor() config.File
- func GetCurrentApolloConfig() map[string]*ApolloConnConfig
- func GetCurrentApolloConfigReleaseKey(namespace string) string
- func GetPlainAppConfig() *config.AppConfig
- func GetServers() *sync.Map
- func GetServersLen() int
- func GetServicesConfigURL(config *config.AppConfig) string
- func InitConfig(loadAppConfig func() (*config.AppConfig, error)) (err error)
- func InitFileConfig()
- func SetCurrentApolloConfig(namespace string, connConfig *ApolloConnConfig)
- func SetDownNode(host string)
- func SplitNamespaces(namespacesStr string, callback func(namespace string)) sync.Map
- func SyncServerIPListSuccessCallBack(responseBody []byte) (o interface{}, err error)
- func Unmarshal(b []byte) (interface{}, error)
- type ApolloConfig
- type ApolloConnConfig
- type ConnectConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppConfig ¶
GetAppConfig 获取app配置
func GetCurrentApolloConfig ¶
func GetCurrentApolloConfig() map[string]*ApolloConnConfig
GetCurrentApolloConfig 获取Apollo链接配置
func GetCurrentApolloConfigReleaseKey ¶
GetCurrentApolloConfigReleaseKey 获取release key
func GetServicesConfigURL ¶
GetServicesConfigURL 获取服务器列表url
func InitConfig ¶
InitConfig 使用指定配置初始化配置
func SetCurrentApolloConfig ¶
func SetCurrentApolloConfig(namespace string, connConfig *ApolloConnConfig)
SetCurrentApolloConfig 设置apollo配置
func SplitNamespaces ¶
SplitNamespaces 根据namespace字符串分割后,并执行callback函数
func SyncServerIPListSuccessCallBack ¶
SyncServerIPListSuccessCallBack 同步服务器列表成功后的回调
Types ¶
type ApolloConfig ¶
type ApolloConfig struct { ApolloConnConfig Configurations map[string]interface{} `json:"configurations"` }
ApolloConfig apollo配置
Click to show internal directories.
Click to hide internal directories.