Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedProvider = errors.New("This configuration manager is not supported")
)
Functions ¶
func SetAgolloOptions ¶
func SetConfigType ¶
func SetConfigType(ct string)
Types ¶
type ApolloConfig ¶
type ApolloConfig struct { // apollo endpoint or url Endpoint string // apollo appid AppID string // config file type ,such as prop or yaml ConfigType string // apollo namespace Namespace string }
ApolloConfig Apollo Config
type Extender ¶
type Extender struct {
// contains filtered or unexported fields
}
func NewApolloProvider ¶
func NewApolloProvider(config ApolloConfig) (*Extender, error)
NewApolloProvider new apollo viper remote provider by apollo config
func (*Extender) SecretKeyring ¶
func (*Extender) WatchRemoteConfigOnChannel ¶
WatchRemoteConfigOnChannel watch remote config changed on notify
Click to show internal directories.
Click to hide internal directories.