Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendMsgHooker ¶
type BackendMsgHooker struct { }
func (BackendMsgHooker) OnInboundEvent ¶
func (BackendMsgHooker) OnInboundEvent(inputEvent lib.Event) (outputEvent lib.Event)
后端服务器接收来自网关的消息
func (BackendMsgHooker) OnOutboundEvent ¶
func (BackendMsgHooker) OnOutboundEvent(inputEvent lib.Event) (outputEvent lib.Event)
后端服务器发送到网关的消息
type BroadcasterHooker ¶
type BroadcasterHooker struct { }
func (BroadcasterHooker) OnInboundEvent ¶
func (BroadcasterHooker) OnInboundEvent(inputEvent lib.Event) (outputEvent lib.Event)
来自后台服务器的消息
func (BroadcasterHooker) OnOutboundEvent ¶
func (BroadcasterHooker) OnOutboundEvent(inputEvent lib.Event) (outputEvent lib.Event)
发送给后台服务器
type RecvMsgEvent ¶
type RecvMsgEvent struct { Ses lib.Session Msg interface{} ClientId int64 AccId int64 UserId int64 }
func (*RecvMsgEvent) Message ¶
func (this *RecvMsgEvent) Message() interface{}
func (*RecvMsgEvent) Reply ¶
func (this *RecvMsgEvent) Reply(msg interface{})
func (*RecvMsgEvent) Session ¶
func (this *RecvMsgEvent) Session() lib.Session
Click to show internal directories.
Click to hide internal directories.