meta

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoMetaErr = errors.New("NoMetaErr")

Functions

func RegisterMeta

func RegisterMeta(meta IMeta)

Types

type IMeta

type IMeta interface {
	GetMsgID() IMsgID
	EncodeArg(interface{}) ([]byte, error)
	DecodeArg([]byte) (interface{}, error)
	EncodeReply(interface{}) ([]byte, error)
	DecodeReply([]byte) (interface{}, error)
}

func GetMeta

func GetMeta(msgId int32) (IMeta, error)

type IMsgID

type IMsgID interface {
	ID() int32
	String() string
}

Jump to

Keyboard shortcuts

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