Documentation ¶
Index ¶
- Variables
- func MarshalBodyFn(body interface{}, oldBuffToAppend []byte) ([]byte, byte, error)
- func UnmarshalPacket(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_NotiBroadcast(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_ReqAct(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_ReqChat(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_ReqHeartbeat(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_ReqInvalidCmd(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_ReqLogin(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_RspAct(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_RspChat(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_RspHeartbeat(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_RspInvalidCmd(h c2s_packet.Header, bodyData []byte) (interface{}, error)
- func Unmarshal_RspLogin(h c2s_packet.Header, bodyData []byte) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var NotiUnmarshalMap = [...]func(h c2s_packet.Header, bodyData []byte) (interface{}, error){ c2s_idnoti.Broadcast: Unmarshal_NotiBroadcast, }
View Source
var ReqUnmarshalMap = [...]func(h c2s_packet.Header, bodyData []byte) (interface{}, error){ c2s_idcmd.InvalidCmd: Unmarshal_ReqInvalidCmd, c2s_idcmd.Login: Unmarshal_ReqLogin, c2s_idcmd.Heartbeat: Unmarshal_ReqHeartbeat, c2s_idcmd.Chat: Unmarshal_ReqChat, c2s_idcmd.Act: Unmarshal_ReqAct, }
View Source
var RspUnmarshalMap = [...]func(h c2s_packet.Header, bodyData []byte) (interface{}, error){ c2s_idcmd.InvalidCmd: Unmarshal_RspInvalidCmd, c2s_idcmd.Login: Unmarshal_RspLogin, c2s_idcmd.Heartbeat: Unmarshal_RspHeartbeat, c2s_idcmd.Chat: Unmarshal_RspChat, c2s_idcmd.Act: Unmarshal_RspAct, }
Functions ¶
func MarshalBodyFn ¶
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.
Click to show internal directories.
Click to hide internal directories.