msg

package
v0.0.0-...-8c018af Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Processor = protobuf.NewProcessor()
	Processor = cstruct.NewProcessor()
	MsgParser = network.NewMsgParser()
)

Functions

func GetMsgBodyData

func GetMsgBodyData(msg interface{}) []byte

func GetMsgData

func GetMsgData(recv *cstruct.RecvMsg, mainCmdID uint16, subCmdID uint16, msg interface{}) []byte

func GetMsgDataRawBody

func GetMsgDataRawBody(recv *cstruct.RecvMsg, mainCmdID uint16, subCmdID uint16, body []byte) []byte

func GetMsgObject

func GetMsgObject(mainCmdID uint16, subCmdID uint16, data []byte) interface{}

func Register

func Register(mainCmdID uint16, subCmdID uint16, msg interface{}, msgRouter *chanrpc.Server, h interface{})

func SetMsgSkeleton

func SetMsgSkeleton(skeleto *module.Skeleton)

Types

This section is empty.

Jump to

Keyboard shortcuts

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