gdproto

package
v0.0.0-...-7424bbb Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgInfo

type MsgInfo struct {
	// contains filtered or unexported fields
}

MsgInfo MsgInfo

type MsgProto

type MsgProto struct {
	// contains filtered or unexported fields
}

MsgProto MsgProto

func NewMsg

func NewMsg(msgID int32, msg interface{}) *MsgProto

NewMsg NewMsg

type Processor

type Processor struct {
	LittleEndian bool
	// contains filtered or unexported fields
}

Processor Processor

func NewProcessor

func NewProcessor(cmds map[int32]string) *Processor

NewProcessor NewProcessor

func (*Processor) Handler

func (its *Processor) Handler(msgID int32, msg proto.Message, chanRPC *chanrpc.Server, f interface{})

Handler Handler

func (*Processor) Marshal

func (its *Processor) Marshal(msg interface{}) (r [][]byte, err error)

Marshal Marshal

func (*Processor) MsgID

func (its *Processor) MsgID(id uint16) []byte

MsgID MsgID

func (*Processor) Route

func (its *Processor) Route(msg interface{}, userData interface{}) error

Route Route

func (*Processor) Unmarshal

func (its *Processor) Unmarshal(data []byte) (msg interface{}, err error)

Unmarshal Unmarshal

Jump to

Keyboard shortcuts

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