Documentation ¶
Index ¶
- func MarshalBody_gob(body interface{}, oldBuffToAppend []byte) ([]byte, byte, error)
- func MarshalBody_msgp(body interface{}, oldBuffToAppend []byte) ([]byte, byte, error)
- func Unmarshal_ReqEcho_gob(pk *packet.Packet) (interface{}, error)
- func Unmarshal_ReqEcho_msgp(pk *packet.Packet) (interface{}, error)
- type NotiInvalid_data
- func (z *NotiInvalid_data) DecodeMsg(dc *msgp.Reader) (err error)
- func (z NotiInvalid_data) EncodeMsg(en *msgp.Writer) (err error)
- func (z NotiInvalid_data) MarshalMsg(b []byte) (o []byte, err error)
- func (z NotiInvalid_data) Msgsize() (s int)
- func (z *NotiInvalid_data) UnmarshalMsg(bts []byte) (o []byte, err error)
- type ReqEcho_data
- type ReqInvalid_data
- func (z *ReqInvalid_data) DecodeMsg(dc *msgp.Reader) (err error)
- func (z ReqInvalid_data) EncodeMsg(en *msgp.Writer) (err error)
- func (z ReqInvalid_data) MarshalMsg(b []byte) (o []byte, err error)
- func (z ReqInvalid_data) Msgsize() (s int)
- func (z *ReqInvalid_data) UnmarshalMsg(bts []byte) (o []byte, err error)
- type RspEcho_data
- type RspInvalid_data
- func (z *RspInvalid_data) DecodeMsg(dc *msgp.Reader) (err error)
- func (z RspInvalid_data) EncodeMsg(en *msgp.Writer) (err error)
- func (z RspInvalid_data) MarshalMsg(b []byte) (o []byte, err error)
- func (z RspInvalid_data) Msgsize() (s int)
- func (z *RspInvalid_data) UnmarshalMsg(bts []byte) (o []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalBody_gob ¶
func MarshalBody_msgp ¶
func Unmarshal_ReqEcho_gob ¶
func Unmarshal_ReqEcho_msgp ¶
Types ¶
type NotiInvalid_data ¶
type NotiInvalid_data struct {
Dummy uint8 // change as you need
}
Invalid not used, make empty packet error
func (*NotiInvalid_data) DecodeMsg ¶
func (z *NotiInvalid_data) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (NotiInvalid_data) EncodeMsg ¶
func (z NotiInvalid_data) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (NotiInvalid_data) MarshalMsg ¶
func (z NotiInvalid_data) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (NotiInvalid_data) Msgsize ¶
func (z NotiInvalid_data) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*NotiInvalid_data) UnmarshalMsg ¶
func (z *NotiInvalid_data) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type ReqEcho_data ¶
type ReqEcho_data struct {
Msg string
}
Echo simple echo
func (*ReqEcho_data) DecodeMsg ¶
func (z *ReqEcho_data) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (ReqEcho_data) EncodeMsg ¶
func (z ReqEcho_data) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (ReqEcho_data) MarshalMsg ¶
func (z ReqEcho_data) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (ReqEcho_data) Msgsize ¶
func (z ReqEcho_data) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ReqEcho_data) UnmarshalMsg ¶
func (z *ReqEcho_data) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type ReqInvalid_data ¶
type ReqInvalid_data struct {
Dummy uint8 // change as you need
}
Invalid not used, make empty packet error
func (*ReqInvalid_data) DecodeMsg ¶
func (z *ReqInvalid_data) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (ReqInvalid_data) EncodeMsg ¶
func (z ReqInvalid_data) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (ReqInvalid_data) MarshalMsg ¶
func (z ReqInvalid_data) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (ReqInvalid_data) Msgsize ¶
func (z ReqInvalid_data) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ReqInvalid_data) UnmarshalMsg ¶
func (z *ReqInvalid_data) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type RspEcho_data ¶
type RspEcho_data struct {
Msg string
}
Echo simple echo
func (*RspEcho_data) DecodeMsg ¶
func (z *RspEcho_data) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (RspEcho_data) EncodeMsg ¶
func (z RspEcho_data) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (RspEcho_data) MarshalMsg ¶
func (z RspEcho_data) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (RspEcho_data) Msgsize ¶
func (z RspEcho_data) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*RspEcho_data) UnmarshalMsg ¶
func (z *RspEcho_data) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type RspInvalid_data ¶
type RspInvalid_data struct {
Dummy uint8 // change as you need
}
Invalid not used, make empty packet error
func (*RspInvalid_data) DecodeMsg ¶
func (z *RspInvalid_data) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (RspInvalid_data) EncodeMsg ¶
func (z RspInvalid_data) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (RspInvalid_data) MarshalMsg ¶
func (z RspInvalid_data) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (RspInvalid_data) Msgsize ¶
func (z RspInvalid_data) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*RspInvalid_data) UnmarshalMsg ¶
func (z *RspInvalid_data) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler