remote

package
v1.2.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 14

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 SetAgolloOptions(opts ...agollo.Option)

func SetAppID

func SetAppID(appid string)

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) Endpoint added in v1.2.12

func (rp *Extender) Endpoint() string

func (*Extender) GetViper added in v1.2.12

func (rp *Extender) GetViper() *viper.Viper

GetViper get viper instance

func (*Extender) Path added in v1.2.12

func (rp *Extender) Path() string

func (*Extender) Provider added in v1.2.12

func (rp *Extender) Provider() string

func (*Extender) SecretKeyring added in v1.2.12

func (rp *Extender) SecretKeyring() string

func (*Extender) WatchRemoteConfigOnChannel added in v1.2.12

func (rp *Extender) WatchRemoteConfigOnChannel() <-chan bool

WatchRemoteConfigOnChannel watch remote config changed on notify

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL