backend

package
v0.0.0-...-1c5b680 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL