Documentation ¶
Index ¶
- type Storage
- func (s Storage) GetOrSetUserFirstSeen(userID int64, firstSeen time.Time) (time.Time, error)
- func (s Storage) GetUserChatMessageCount(userID int64, chatID int64) (int64, error)
- func (s Storage) GetVotes(chatID int64, messageID int) (int, int, error)
- func (s Storage) IncUserChatMessageCount(userID int64, chatID int64, add int64) (int64, error)
- func (s Storage) IsUserAdmin(userID int64) bool
- func (s Storage) IsUserTrusted(userID int64) (bool, error)
- func (s Storage) TrustUser(userID int64) error
- func (s Storage) VoteSpam(userID int64, chatID int64, messageID int, spam bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (Storage) GetOrSetUserFirstSeen ¶
func (Storage) GetUserChatMessageCount ¶
func (Storage) IncUserChatMessageCount ¶
func (Storage) IsUserAdmin ¶
Click to show internal directories.
Click to hide internal directories.