Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) MutateLastTime ¶
type ChatHistory ¶
type ChatHistory struct {
// contains filtered or unexported fields
}
func NewChatHistory ¶
func NewChatHistory(userID string, lookback time.Duration) *ChatHistory
func (*ChatHistory) AddChat ¶
func (ch *ChatHistory) AddChat(chat ReadonlyChat)
func (*ChatHistory) Empty ¶
func (ch *ChatHistory) Empty() bool
func (*ChatHistory) GetTotalHistoryDuration ¶
func (ch *ChatHistory) GetTotalHistoryDuration() time.Duration
func (*ChatHistory) LastActivityTime ¶
func (ch *ChatHistory) LastActivityTime() time.Time
Click to show internal directories.
Click to hide internal directories.