Documentation ¶
Index ¶
- type ISC_GateRouteComp
- type SComp_GateRouteComp
- func (this *SComp_GateRouteComp) GetName() core.S_Comps
- func (this *SComp_GateRouteComp) Init(service core.IService, comp core.IServiceComp) (err error)
- func (this *SComp_GateRouteComp) ReceiveMsg(s core.IUserSession, msg proto.IMessage) (result string, err string)
- func (this *SComp_GateRouteComp) RegisterRoute(comId uint16, ...) (err error)
- func (this *SComp_GateRouteComp) Start() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISC_GateRouteComp ¶
type ISC_GateRouteComp interface { core.IServiceComp RegisterRoute(comId uint16, f func(s core.IUserSession, msg proto.IMessage) (code int, err string)) (err error) }
func NewGateRouteComp ¶
func NewGateRouteComp() ISC_GateRouteComp
type SComp_GateRouteComp ¶
type SComp_GateRouteComp struct { cbase.ServiceCompBase Service base.IClusterService Routes map[uint16]func(s core.IUserSession, msg proto.IMessage) (code int, err string) }
func (*SComp_GateRouteComp) GetName ¶
func (this *SComp_GateRouteComp) GetName() core.S_Comps
func (*SComp_GateRouteComp) Init ¶
func (this *SComp_GateRouteComp) Init(service core.IService, comp core.IServiceComp) (err error)
func (*SComp_GateRouteComp) ReceiveMsg ¶
func (this *SComp_GateRouteComp) ReceiveMsg(s core.IUserSession, msg proto.IMessage) (result string, err string)
func (*SComp_GateRouteComp) RegisterRoute ¶
func (this *SComp_GateRouteComp) RegisterRoute(comId uint16, f func(s core.IUserSession, msg proto.IMessage) (code int, err string)) (err error)
func (*SComp_GateRouteComp) Start ¶
func (this *SComp_GateRouteComp) Start() (err error)
Click to show internal directories.
Click to hide internal directories.