Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeTextMessage = "text" TypeImageMessage = "image" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageMessage ¶
type Message ¶
type Message struct { MessageID primitive.ObjectID `bson:"message_id" json:"messageId"` SenderID primitive.ObjectID `bson:"sender_id" json:"senderId"` CreatedAt time.Time `bson:"created_at" json:"createdAt"` Edited bool `bson:"edited" json:"edited"` Seen bool `bson:"seen" json:"seen"` // MessageType Type string Content interface{} }
type Repository ¶
type TextMessage ¶
type TextMessage struct {
Message string
}
Click to show internal directories.
Click to hide internal directories.