Documentation ¶
Index ¶
- type ConfCenter
- func (cc *ConfCenter) GetConfigureCxt() []byte
- func (cc *ConfCenter) GetErrorCxt() map[string]errors.ErrorCode
- func (cc *ConfCenter) GetLanguageResCxt() map[string]language.LanguageMap
- func (cc *ConfCenter) Ping() error
- func (cc *ConfCenter) Start(confDir, errres, languageres string) error
- func (cc *ConfCenter) Stop() error
- func (cc *ConfCenter) WriteConfs2Center(confRootPath string) error
- func (cc *ConfCenter) WriteErrorRes2Center(errorres string) error
- func (cc *ConfCenter) WriteLanguageRes2Center(languageres 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) GetErrorCxt ¶
func (cc *ConfCenter) GetErrorCxt() map[string]errors.ErrorCode
func (*ConfCenter) GetLanguageResCxt ¶
func (cc *ConfCenter) GetLanguageResCxt() map[string]language.LanguageMap
GetLanguageResCxt fetch the language packages
func (*ConfCenter) Start ¶
func (cc *ConfCenter) Start(confDir, errres, languageres 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) WriteErrorRes2Center ¶
func (cc *ConfCenter) WriteErrorRes2Center(errorres string) error
func (*ConfCenter) WriteLanguageRes2Center ¶
func (cc *ConfCenter) WriteLanguageRes2Center(languageres string) error
Click to show internal directories.
Click to hide internal directories.