config

package
v3.0.7-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfCenter

type ConfCenter struct {
	// contains filtered or unexported fields
}

ConfCenter discover configure changed. get, update configures

func NewConfCenter

func NewConfCenter(serv string) *ConfCenter

NewConfCenter create a ConfCenter object

func (*ConfCenter) GetConfigureCxt

func (cc *ConfCenter) GetConfigureCxt() []byte

GetConfigureCtx fetch the configure

func (*ConfCenter) GetLanguageCxt

func (cc *ConfCenter) GetLanguageCxt() map[string]errors.ErrorCode

func (*ConfCenter) Start

func (cc *ConfCenter) Start(confDir, errres string) error

Start the configure center module service

func (*ConfCenter) Stop

func (cc *ConfCenter) Stop() error

Stop the configure center

func (*ConfCenter) WriteConfs2Center

func (cc *ConfCenter) WriteConfs2Center(confRootPath string) error

WriteConfs2Center save configurs into center. parameter[confRootPath] define the configurs root path, the specification name of the configure \ file is [modulename].conf \

func (*ConfCenter) WriteLanguagePackage2Center

func (cc *ConfCenter) WriteLanguagePackage2Center(errorres string) error

Jump to

Keyboard shortcuts

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