Documentation ¶
Index ¶
- type ConfigureJson
- type ConfigureManager
- func (c *ConfigureManager) BeginWork()
- func (c *ConfigureManager) Init()
- func (c *ConfigureManager) OnForeseeMessage(msg message.BaseMessage) (done bool)
- func (c *ConfigureManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)
- func (c *ConfigureManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)
- func (c *ConfigureManager) OnProcessResponse(rsp message.BaseResponse)
- func (c *ConfigureManager) StopWork()
- func (c *ConfigureManager) Uninit()
- type GgfServiceJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigureJson ¶
type ConfigureJson struct { GgfService GgfServiceJson `json:"ggf_service"` // ggf name NtpServer common.NTPInfo `json:"ntp_server"` }
json配置
func (*ConfigureJson) String ¶
func (c *ConfigureJson) String() string
type ConfigureManager ¶
type ConfigureManager struct { core.MessageList // 消息列表 ConfigureFile string // 配置文件名字 // contains filtered or unexported fields }
本模块是配置管理模块,从配置文件(./config/config.json)中读取配置,并将配置发送出去,如果配置有更新,则同步到配置文件中
配置信息
func (*ConfigureManager) OnForeseeMessage ¶
func (c *ConfigureManager) OnForeseeMessage(msg message.BaseMessage) (done bool)
偷窥消息
func (*ConfigureManager) OnForeseeResponse ¶
func (c *ConfigureManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)
偷窥消息的回应
func (*ConfigureManager) OnProcessMessage ¶
func (c *ConfigureManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)
处理消息
func (*ConfigureManager) OnProcessResponse ¶
func (c *ConfigureManager) OnProcessResponse(rsp message.BaseResponse)
处理消息的回应
type GgfServiceJson ¶
type GgfServiceJson struct {
HttpPort int32 `json:"http_port"` // http port
}
func (*GgfServiceJson) String ¶
func (h *GgfServiceJson) String() string
Click to show internal directories.
Click to hide internal directories.