Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct {
// Readers for files to be attached to the next message the client sends in this chat
Attachments []io.Reader
// Data for each message in the chat
// Key (int) - Message ID
// Val (*prot.MessageRaw) - Message data
Messages map[int]*prot.MessageRaw
MessagesBind map[int]binding.String
// Chat metadata
Metadata prot.ChatMetadata
ReplyingTo []int
}
Cache and data for a chat
func NewChatCache ¶
func NewChatCache() *Chat
Click to show internal directories.
Click to hide internal directories.