tests

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMsg_Login

type ChatMsg_Login struct {
	Name string `msg:"name"`
}

func (*ChatMsg_Login) DecodeMsg

func (z *ChatMsg_Login) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (ChatMsg_Login) EncodeMsg

func (z ChatMsg_Login) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (ChatMsg_Login) MarshalMsg

func (z ChatMsg_Login) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (ChatMsg_Login) Msgsize

func (z ChatMsg_Login) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ChatMsg_Login) UnmarshalMsg

func (z *ChatMsg_Login) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type ChatMsg_Send

type ChatMsg_Send struct {
	Reciever string `msg:"recv"`
	Content  string `msg:"msg"`
}

func (*ChatMsg_Send) DecodeMsg

func (z *ChatMsg_Send) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (ChatMsg_Send) EncodeMsg

func (z ChatMsg_Send) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (ChatMsg_Send) MarshalMsg

func (z ChatMsg_Send) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (ChatMsg_Send) Msgsize

func (z ChatMsg_Send) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*ChatMsg_Send) UnmarshalMsg

func (z *ChatMsg_Send) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type TestMsg

type TestMsg struct {
	ID   int    `msg:"id"`
	Name string `msg:"name"`
	Data []byte `msg:"data"`
}

func (*TestMsg) DecodeMsg

func (z *TestMsg) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (*TestMsg) EncodeMsg

func (z *TestMsg) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (*TestMsg) MarshalMsg

func (z *TestMsg) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*TestMsg) Msgsize

func (z *TestMsg) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*TestMsg) UnmarshalMsg

func (z *TestMsg) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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