Documentation ¶
Index ¶
- type ConfCenter
- func (cc *ConfCenter) GetConfigureCxt() []byte
- func (cc *ConfCenter) GetLanguageCxt() map[string]errors.ErrorCode
- func (cc *ConfCenter) Start(confDir, errres string) error
- func (cc *ConfCenter) Stop() error
- func (cc *ConfCenter) WriteConfs2Center(confRootPath string) error
- func (cc *ConfCenter) WriteLanguagePackage2Center(errorres string) 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) 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) 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
Click to show internal directories.
Click to hide internal directories.