config

package
v0.0.0-...-7378411 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 10 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) GetConfigOnce

func (cc *ConfCenter) GetConfigOnce() error

Start the configure center module service

func (*ConfCenter) GetConfigureCtx

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

GetConfigureCtx fetch the configure

func (*ConfCenter) GetErrorResCxt

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

GetErrorResCxt fetch the language packages

func (*ConfCenter) GetLanguageResCxt

func (cc *ConfCenter) GetLanguageResCxt() map[string]language.LanguageMap

GetLanguageResCxt fetch the language packages

func (*ConfCenter) ParseConf

func (cc *ConfCenter) ParseConf(data []byte) map[string]string

func (*ConfCenter) Ping

func (cc *ConfCenter) Ping() error

Ping to ping server

func (*ConfCenter) Start

func (cc *ConfCenter) Start() error

Start the configure center module service

func (*ConfCenter) Stop

func (cc *ConfCenter) Stop() error

Stop the configure center

Jump to

Keyboard shortcuts

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