meta

package
v0.0.0-...-214a605 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMsgMeta

func RegisterMsgMeta(m Meta)

RegisterMsgMeta 注册一个meta 如果meta已存在或meda id重复,则panic

Types

type Meta

type Meta interface {
	Identify() uint32
	Type() reflect.Type
	New() interface{}
}

func MustGetMsgMeta

func MustGetMsgMeta(id uint32) Meta

MustGetMsgMeta 获取指定id对应的meta. 若未注册,则panic

func New

func New(id uint32, t reflect.Type) Meta

Jump to

Keyboard shortcuts

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