Documentation ¶
Index ¶
- type Message
- type ServerMessage
- func (m ServerMessage) Binary(w channel.BinaryWriter) error
- func (m ServerMessage) Equal(msg channel.Msg) bool
- func (m ServerMessage) FromBinary(r channel.BinaryReader) (channel.Msg, error)
- func (m ServerMessage) FromJSON(r io.Reader) (channel.Msg, io.Reader, error)
- func (m ServerMessage) JSON(w io.Writer) error
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
func BinaryMessage ¶
func BinaryMessage(r channel.BinaryReader) (Message, error)
func (Message) FromBinary ¶
type ServerMessage ¶
type ServerMessage struct { Channel string `json:"channel"` Users []User `json:"users"` channel.NoClose }
func BinaryServerMessage ¶
func BinaryServerMessage(r channel.BinaryReader) (msg ServerMessage, err error)
func JSONServerMessage ¶
func (ServerMessage) Binary ¶
func (m ServerMessage) Binary(w channel.BinaryWriter) error
func (ServerMessage) FromBinary ¶
func (m ServerMessage) FromBinary(r channel.BinaryReader) (channel.Msg, error)
Click to show internal directories.
Click to hide internal directories.