c2s_gob

package
v0.0.0-...-58ce3ea Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotiUnmarshalMap = [...]func(h c2s_packet.Header, bodyData []byte) (interface{}, error){
	c2s_idnoti.Broadcast: Unmarshal_NotiBroadcast,
}

Functions

func MarshalBodyFn

func MarshalBodyFn(body interface{}, oldBuffToAppend []byte) ([]byte, byte, error)

marshal body and append to oldBufferToAppend and return newbuffer, body type, error

func UnmarshalPacket

func UnmarshalPacket(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_NotiBroadcast

func Unmarshal_NotiBroadcast(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_ReqAct

func Unmarshal_ReqAct(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_ReqChat

func Unmarshal_ReqChat(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_ReqHeartbeat

func Unmarshal_ReqHeartbeat(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_ReqInvalidCmd

func Unmarshal_ReqInvalidCmd(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_ReqLogin

func Unmarshal_ReqLogin(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_RspAct

func Unmarshal_RspAct(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_RspChat

func Unmarshal_RspChat(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_RspHeartbeat

func Unmarshal_RspHeartbeat(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_RspInvalidCmd

func Unmarshal_RspInvalidCmd(h c2s_packet.Header, bodyData []byte) (interface{}, error)

func Unmarshal_RspLogin

func Unmarshal_RspLogin(h c2s_packet.Header, bodyData []byte) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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