Documentation ¶
Index ¶
Constants ¶
View Source
const ArchiveTable = `` /* 214-byte string literal not displayed */
ArchiveTable stores events for posterity. The brokers currently supported do not provide a surrogate event id and instead rely on the timestamp/user/room for identity.
View Source
const ReactionTable = `` /* 224-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArchiveEntry ¶
type ArchiveEntry struct { ID string `json:"id"` Timestamp time.Time `json:"timestamp"` User string `json:"user"` Room string `json:"room"` Broker string `json:"broker"` Body string `json:"body"` Reactions []string `json:"reactions"` }
ArchiveEntry is a single event observed by the archive plugin.
func FetchArchive ¶
func FetchArchive(limit int) ([]*ArchiveEntry, error)
FetchArchive selects messages from the archive table up to the provided number of messages limit.
Click to show internal directories.
Click to hide internal directories.