Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedProvider = errors.New("This configuration manager is not supported")
)
Functions ¶
func SetAgolloOptions ¶ added in v1.0.4
func SetConfigType ¶
func SetConfigType(ct string)
Types ¶
type ApolloConfig ¶ added in v1.2.12
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 ¶ added in v1.2.12
type Extender struct {
// contains filtered or unexported fields
}
func NewApolloProvider ¶ added in v1.2.12
func NewApolloProvider(config ApolloConfig) (*Extender, error)
NewApolloProvider new apollo viper remote provider by apollo config
func (*Extender) SecretKeyring ¶ added in v1.2.12
func (*Extender) WatchRemoteConfigOnChannel ¶ added in v1.2.12
WatchRemoteConfigOnChannel watch remote config changed on notify
Click to show internal directories.
Click to hide internal directories.