Documentation
¶
Index ¶
- type Db
- func (db *Db) GetServerEmote(ctx context.Context, emote *emotes.Emote) ([]emotes.Emote, error)
- func (db *Db) GetUserEmotes(ctx context.Context, emote *emotes.Emote) ([]emotes.Emote, error)
- func (db *Db) IncrementEmote(ctx context.Context, emote *emotes.Emote) error
- func (a *Db) NewIndex(database string, collectionName string, field string, unique bool)
- type Repository
- type Sql
- type Sqlrepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct {
// contains filtered or unexported fields
}
func (*Db) GetServerEmote ¶
Takes in an emote and returns a leaderboard of the top users who have used that emote
func (*Db) GetUserEmotes ¶
func (*Db) IncrementEmote ¶
type Repository ¶
type Sql ¶
type Sql struct {
// contains filtered or unexported fields
}
func (*Sql) GetServerEmote ¶
func (*Sql) GetUserEmotes ¶
Click to show internal directories.
Click to hide internal directories.