Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Data string `json:"d"` channel.NeverEqual channel.NoClose }
func BinaryMessage ¶
func BinaryMessage(r channel.BinaryReader) (Message, error)
func BinaryMessageFromReader ¶
func (Message) FromBinary ¶
type ServerMessage ¶
type ServerMessage struct { Message From string `json:"from"` Stamp time.Time `json:"stamp"` PM string `json:"pm"` Notify Notify `json:"notify"` Bot bool `json:"bot"` Shout bool `json:"shout"` channel.NeverEqual 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.