Documentation ¶
Index ¶
- type ConfCenter
- func (cc *ConfCenter) GetConfigOnce() error
- func (cc *ConfCenter) GetConfigureCtx() []byte
- func (cc *ConfCenter) GetErrorResCxt() map[string]errors.ErrorCode
- func (cc *ConfCenter) GetLanguageResCxt() map[string]language.LanguageMap
- func (cc *ConfCenter) ParseConf(data []byte) map[string]string
- func (cc *ConfCenter) Ping() error
- func (cc *ConfCenter) Start() error
- func (cc *ConfCenter) Stop() error
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) Start ¶
func (cc *ConfCenter) Start() error
Start the configure center module service
Click to show internal directories.
Click to hide internal directories.