Documentation
¶
Index ¶
- func InitDB(path string) (*sql.DB, error)
- func MutateAddTag(db *sql.DB, tag string, guild_id string, channel_id string, message_id string) error
- func MutateAwardCount(db *sql.DB, guild_id string, earner_id string, award_name string, ...) error
- func MutateRemoveTagByName(db *sql.DB, guild_id string, tag string) error
- func QueryListTags(db *sql.DB, guild_id string, page int) ([]string, error)
- func QuerySearchTags(db *sql.DB, query string, guild_id string) ([]string, error)
- func RunMigrations(db *sql.DB) error
- type AwardKV
- type AwardOperation
- type LeaderboardEntry
- type TagQueryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateAddTag ¶
func MutateAwardCount ¶
func MutateRemoveTagByName ¶
func QueryListTags ¶ added in v1.3.0
func QuerySearchTags ¶
func RunMigrations ¶
Types ¶
type AwardOperation ¶
type AwardOperation int
const ( AwardIncrement AwardOperation = iota AwardDecrement )
type LeaderboardEntry ¶
func QueryLeaderboard ¶
func QueryLeaderboard(db *sql.DB, guild_id string) ([]LeaderboardEntry, error)
type TagQueryResult ¶
func QueryTagByName ¶
Click to show internal directories.
Click to hide internal directories.