Documentation ¶
Overview ¶
Package model provides the domain-specific data models for this list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateBoundary ¶
DateBoundary represents a change in the date during a chat.
func (DateBoundary) Serial ¶
func (d DateBoundary) Serial() list.Serial
Serial returns the unique identifier of the message.
type Message ¶
type Message struct { SerialID string Title, Content, AlbumId, Type string ParentId []string SentAt time.Time Avatar image.Image Read bool }
Message represents a chat message.
type Room ¶
type Room struct { // Image avatar for the room. Image image.Image // Name of the room. Name string // Channel id Id string Count string Content string Selected []string IsBase bool Loaded bool }
Room is a unique conversation context. Room can have any number of participants, and any number of messages. Any participant of a room should be able to view the room, send messages to and receive messages from the other participants.
type Rooms ¶
type Rooms struct {
// contains filtered or unexported fields
}
Rooms structure manages a collection of rooms.
type UnreadBoundary ¶
type UnreadBoundary struct{}
UnreadBoundary represents the boundary between the last read message in a chat and the next unread message.
func (UnreadBoundary) Serial ¶
func (u UnreadBoundary) Serial() list.Serial
Serial returns the unique identifier for the boundary.