Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BanRecord ¶
type BanRecord struct {
ID string `json:"id"`
OwnerID string `json:"owner_id"`
BanishedID string `json:"banished_id"`
BanishedUsername string `json:"banished_username"`
Reason *string `json:"reason,omitempty"`
Start time.Time `json:"start"`
End *time.Time `json:"end,omitempty"`
Duration *string `json:"duration,omitempty"`
Pardoned bool `json:"pardoned"`
}
type Channel ¶
type Channel struct {
ID int `json:"id"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
SortOrder int `json:"sort_order,omitempty"`
}
Channel represents a chat channel with a name and optional description
type ChatMessage ¶
type ChatMessage struct {
ID int `json:"id,omitempty"`
CacheID int `json:"cacheID,omitempty"`
OwnerID string `json:"owner_id"`
Username string `json:"username"`
Channel string `json:"channel"`
Message string `json:"message"`
Sent time.Time `json:"authored_at"`
}
ChatMessage represents a chat message sent by a user. This message is broadcasted to all clients in the specified channel.
type PrivateChatMessage ¶
type PrivateChatMessage struct {
ID int `json:"id,omitempty"`
CacheID int `json:"cacheID,omitempty"`
OwnerID string `json:"owner_id"` // Sender's ID
Username string `json:"username"` // Sender's username
RecipientID string `json:"recipient_id"` // Receiver's userID
Recipient string `json:"recipient"` // Receiver's username
Message string `json:"message"`
Sent time.Time `json:"authored_at"`
}
PrivateChatMessage represents a private message sent between two users.
type RateLimiter ¶
type SessionActivity ¶
Click to show internal directories.
Click to hide internal directories.