Documentation ¶
Index ¶
- type HttpService
- type NetworkManager
- func (n *NetworkManager) BeginWork()
- func (n *NetworkManager) Init()
- func (n *NetworkManager) OnForeseeMessage(msg message.BaseMessage) (done bool)
- func (n *NetworkManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)
- func (n *NetworkManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)
- func (n *NetworkManager) OnProcessResponse(rsp message.BaseResponse)
- func (n *NetworkManager) StopWork()
- func (n *NetworkManager) Uninit()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpService ¶
type HttpService struct { Network *NetworkManager // // contains filtered or unexported fields }
http
func (*HttpService) Startup ¶
func (h *HttpService) Startup(info *common.ServiceInfo) error
启动http服务
type NetworkManager ¶
type NetworkManager struct { core.MessageList // 消息列表 // contains filtered or unexported fields }
本模块是网络模块,开启http/protobuf端口供外部调用
func (*NetworkManager) OnForeseeMessage ¶
func (n *NetworkManager) OnForeseeMessage(msg message.BaseMessage) (done bool)
偷窥消息
func (*NetworkManager) OnForeseeResponse ¶
func (n *NetworkManager) OnForeseeResponse(rsp message.BaseResponse) (done bool)
偷窥消息的回应
func (*NetworkManager) OnProcessMessage ¶
func (n *NetworkManager) OnProcessMessage(msg message.BaseMessage) (rsp message.BaseResponse, err error)
处理消息
func (*NetworkManager) OnProcessResponse ¶
func (n *NetworkManager) OnProcessResponse(rsp message.BaseResponse)
处理消息的回应
Click to show internal directories.
Click to hide internal directories.