Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
Type ActionType //`msg:"type"`
Data []byte //`msg:"data"`
}
func (*Action) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type ActionType ¶
type ActionType int
const ( ActionTypeRegister ActionType = 1 ActionTypeMessage ActionType = 2 ActionTypeGetUsers ActionType = 3 )
func (*ActionType) DecodeMsg ¶
func (z *ActionType) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (ActionType) EncodeMsg ¶
func (z ActionType) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (ActionType) MarshalMsg ¶
func (z ActionType) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (ActionType) Msgsize ¶
func (z ActionType) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ActionType) UnmarshalMsg ¶
func (z *ActionType) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type ErrorMessage ¶
type ErrorMessage struct {
Value string //`msg:"value"`
}
func (*ErrorMessage) DecodeMsg ¶
func (z *ErrorMessage) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (ErrorMessage) EncodeMsg ¶
func (z ErrorMessage) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (ErrorMessage) MarshalMsg ¶
func (z ErrorMessage) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (ErrorMessage) Msgsize ¶
func (z ErrorMessage) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ErrorMessage) UnmarshalMsg ¶
func (z *ErrorMessage) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Message ¶
func (Message) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type User ¶
type User struct {
ID string //`msg:"id"`
Username string //`msg:"username"`
// contains filtered or unexported fields
}
func (User) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Users ¶
type Users []User
func (Users) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler