Documentation ¶
Index ¶
Constants ¶
View Source
const ( PingReplyType = "ping-reply" PingEventType = "ping-event" SendType = "send" SendEventType = "send-event" SendReplyType = "send-reply" NickType = "nick" NickReplyType = "nick-reply" NickEventType = "nick-event" JoinEventType = "join-event" PartEventType = "part-event" AuthType = "auth" BounceEventType = "bounce-event" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCommand ¶
type Message ¶
type Message struct { ID string `json:"id"` Parent string `json:"parent"` PreviousEditID string `json:"previous_edit_id,omitempty"` Time int64 `json:"time"` Sender User `json:"sender"` Content string `json:"content"` EncryptionKeyID string `json:"encryption_key_id,omitempty"` Edited int `json:"edited,omitempty"` Deleted int `json:"deleted,omitempty"` }
type NickCommand ¶
type NickCommand struct {
Name string `json:"name"`
}
type PacketEvent ¶
type PacketEvent struct { ID string `json:"id"` Type PacketType `json:"type"` Data json.RawMessage `json:"data,omitempty"` Error string `json:"error,omitempty"` }
func (*PacketEvent) Payload ¶
func (p *PacketEvent) Payload() (interface{}, error)
type PacketType ¶
type PacketType string
type SendCommand ¶
type Session ¶
type Session struct { RoomName string // contains filtered or unexported fields }
func NewSession ¶
Click to show internal directories.
Click to hide internal directories.