configcenter

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Name is a variable of type string
	Name = "configcenter"
)

Variables

This section is empty.

Functions

func Enable

func Enable()

Enable enable config server client

func InitConfigCenter

func InitConfigCenter() error

InitConfigCenter initialize config center

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

func (EventListener) Event

func (e EventListener) Event(event *core.Event)

Event is a method

Jump to

Keyboard shortcuts

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