Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v0.1.0
type Conversation ¶
type Message ¶
type Message struct {
ID bson.ObjectID `bson:"_id"`
ConversationID bson.ObjectID `bson:"conversation_id"`
Sender MessageSender `bson:"sender"`
Kind string `bson:"kind"`
Content string `bson:"content,omitempty"`
Attachments []Attachment `bson:"attachments"`
Reactions []Reaction `bson:"reactions"`
CreatedAt time.Time `bson:"created_at"`
}
type MessageSender ¶
type Participant ¶
type Reaction ¶
type Reaction struct {
Emoji string `bson:"emoji"`
Participants []ReactionParticipant `bson:"participants"`
}
type ReactionParticipant ¶
Click to show internal directories.
Click to hide internal directories.