Documentation ¶
Index ¶
Constants ¶
View Source
const MaxRetries = 10
MaxRetries for operations
View Source
const Page = 100
Page is a amount of messages per page
View Source
const RetryDelay = 10 * time.Second
RetryDelay between retries
Variables ¶
This section is empty.
Functions ¶
func ResolveServer ¶
ResolveServer resolves actual homeserver URL from possible delegated host
Types ¶
type Message ¶
type Message struct { // ID is a matrix event id of the message ID id.EventID // Replace is a matrix ID of old (replaced) event Replace id.EventID // ReplacedNote is a text note usable from template to mark replaced message as updated ReplacedNote string // Author is a matrix id of the sender Author id.UserID // Text is the message body in plaintext/markdown format Text string // HTML is the message body in html format HTML string // CreatedAt is a timestamp, format: 2006-01-02 15:04 UTC CreatedAt string // CreatedAtFull is a time.Time object CreatedAtFull time.Time }
Message struct
Click to show internal directories.
Click to hide internal directories.