s_comps

package
v0.0.0-...-4cd9d19 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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