meta

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var C2S_FETCH_CONFIG = &meta_C2S_FETCH_CONFIG{}
View Source
var C2S_PLAYER_LOGIN = &meta_C2S_PLAYER_LOGIN{}
View Source
var C2S_PLAYER_LOGOUT = &meta_C2S_PLAYER_LOGOUT{}
View Source
var C2S_PLAYER_PLAYING = &meta_C2S_PLAYER_PLAYING{}
View Source
var NoMetaErr = errors.New("NoMetaErr")

Functions

func Call

func Call(session sess.ISession, msgid pb.MsgID, data []byte) ([]byte, error)

Types

type IMeta

type IMeta interface {
	GetMsgID() pb.MsgID
	EncodeArg(interface{}) ([]byte, error)
	DecodeArg([]byte) (interface{}, error)
	EncodeReply(interface{}) ([]byte, error)
	DecodeReply([]byte) (interface{}, error)
	Handle(session sess.ISession, arg interface{}) (interface{}, error)
}

func GetMeta

func GetMeta(msgId pb.MsgID) (IMeta, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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