configcenter

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

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

	//DefaultConfigCenter is config center
	DefaultConfigCenter = "config_center"
)

Variables

View Source
var ErrRefreshMode = errors.New("refreshMode must be 0 or 1")

ErrRefreshMode means config is mis used

Functions

func InitConfigCenter

func InitConfigCenter() error

InitConfigCenter initialize config center

Types

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