Documentation ¶
Index ¶
Constants ¶
View Source
const (
//Name is a variable of type string
Name = "configcenter"
)
Variables ¶
This section is empty.
Functions ¶
func InstallConfigClientPlugin ¶
func InstallConfigClientPlugin(name string, f func(endpoint, serviceName, app, env, version string, tlsConfig *tls.Config) ConfigClient)
InstallConfigClientPlugin install a config client plugin
Types ¶
type ConfigClient ¶
type ConfigClient interface { //PullConfigs pull all configs from remote PullConfigs(serviceName, version, app, env string) //PullConfig pull one config from remote PullConfig(serviceName, version, app, env, key, contentType string) }
ConfigClient is the interface of config server client, it has basic func to interact with config server
var DefaultClient ConfigClient
DefaultClient is config server's client
type EventListener ¶
type EventListener struct { Name string Factory goarchaius.ConfigurationFactory }
EventListener is a struct
Click to show internal directories.
Click to hide internal directories.