pb_func_mgr

package
v0.0.0-...-d098e83 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PbFunMgr

type PbFunMgr struct {
	// contains filtered or unexported fields
}

PbFunMgr 管理器

func (*PbFunMgr) Init

func (p *PbFunMgr) Init()

Init 初始化管理器

func (*PbFunMgr) OnRecv

func (p *PbFunMgr) OnRecv(messageID uint32, protoHead interface{}, bodyBuf []byte, obj interface{}) (ret int)

OnRecv 收到消息

func (*PbFunMgr) Register

func (p *PbFunMgr) Register(messageID uint32, pbFun ProtoBufFun,
	protoMessage proto.Message) (ret int)

Register 注册消息

type ProtoBufFun

type ProtoBufFun func(protoHead interface{}, protoMessage *proto.Message, obj interface{}) (ret int)

ProtoBufFun 协议function

type ProtoBufFunMap

type ProtoBufFunMap map[uint32]*pbFunHandle

ProtoBufFunMap 协议function map

Jump to

Keyboard shortcuts

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