meta

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetaByID

func GetMetaByID(ID int) void.Meta

func GetMetaByMsg

func GetMetaByMsg(msg interface{}) void.Meta

func GetMetaByType

func GetMetaByType(t reflect.Type) void.Meta

func MessageSize

func MessageSize(msg interface{}) int

func MessageToID

func MessageToID(msg interface{}) int

func NewMeta

func NewMeta(c void.Codec, t reflect.Type, ID int) void.Meta

func Register

func Register(m void.Meta)

Types

type RawPacket

type RawPacket struct {
	MsgData []byte
	MsgID   int
}

直接发送数据时,将*RawPacket作为Send参数

func (*RawPacket) Message

func (r *RawPacket) Message() interface{}

Jump to

Keyboard shortcuts

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