Documentation ¶
Index ¶
- type MComp_GateComp
- func (this *MComp_GateComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, ...) (err error)
- func (this *MComp_GateComp) ReceiveMsg(session core.IUserSession, msg proto.IMessage) (code int, err string)
- func (this *MComp_GateComp) RegisterHandle(mId uint16, msg interface{}, ...)
- func (this *MComp_GateComp) Start() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MComp_GateComp ¶
type MComp_GateComp struct { cbase.ModuleCompBase ComId uint16 //协议分类Id IsLog bool //是否输出消息日志 MaxGoroutine int //最大并发数据 // contains filtered or unexported fields }
模块 网关组件 接待网关 代理 的业务需求
func (*MComp_GateComp) Init ¶
func (this *MComp_GateComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, setting map[string]interface{}) (err error)
func (*MComp_GateComp) ReceiveMsg ¶
func (this *MComp_GateComp) ReceiveMsg(session core.IUserSession, msg proto.IMessage) (code int, err string)
func (*MComp_GateComp) RegisterHandle ¶
func (this *MComp_GateComp) RegisterHandle(mId uint16, msg interface{}, f func(session core.IUserSession, msg interface{}))
func (*MComp_GateComp) Start ¶
func (this *MComp_GateComp) Start() (err error)
Click to show internal directories.
Click to hide internal directories.