Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶ added in v0.3.9
type ChatMessage struct { From jid.WithResource When time.Time Body string *data.ClientMessage // TODO: remove me }
TODO: This feels like bad naming - it implies it's for any chat, but realistically should only be for group chats. The event name should actually take that into account ChatMessage represents a message event in a chat room
type ChatPresence ¶ added in v0.3.9
type ChatPresence struct { Session access.Session *data.ClientPresence }
ChatPresence represents a presence event in a chat room
type DelayedMessageSent ¶ added in v0.3.7
DelayedMessageSent represents the event that a delayed message is sent
type FileTransfer ¶ added in v0.3.9
type FileTransfer struct { Session access.Session Peer jid.WithResource Mime string DateLastModified string Name string Size int64 Description string IsDirectory bool Answer chan<- *string // one time use Control *sdata.FileTransferControl }
FileTransfer represents an event associated with file transfers
type Message ¶
type Message struct { Session access.Session From jid.Any When time.Time Body []byte Encrypted bool }
Message represents a message event
type Notification ¶
Notification represents a notification event
type Peer ¶
type Peer struct { Session access.Session Type PeerType // This can be either with or without Resource depending on the peer type From jid.Any }
Peer represents an event associated to a peer
type Presence ¶
type Presence struct { Session access.Session *data.ClientPresence Gone bool }
Presence represents a presence event
Click to show internal directories.
Click to hide internal directories.