Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapProvider ¶
Types ¶
type ApolloConfig ¶
type ApolloConfig struct {
AppID string
ConfigKey string
AccessKey string
Cluster string
ServerURL string
}
ApolloConfig Apollo 配置参数
type ApolloProvider ¶
type ApolloProvider struct {
// contains filtered or unexported fields
}
ApolloProvider 实现 RemoteProvider 接口,用于从 Apollo 配置中心加载配置
func NewApolloProvider ¶
func NewApolloProvider(cfg ApolloConfig) (*ApolloProvider, error)
NewApolloProvider 创建 Apollo 配置提供者
Click to show internal directories.
Click to hide internal directories.