Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMissingData = errors.New("missing data")
)
Functions ¶
func IncrementEmote ¶
func IncrementEmote(ctx context.Context, emote types.CountedEmote) error
func SetCollections ¶
func SetCollections(globalStats *mongo.Collection)
Types ¶
type Collections ¶
type Collections struct {
GlobalStats *mongo.Collection
}
type EmoteCount ¶
type EmoteCount struct { Name string `bson:"name"` EmoteID primitive.ObjectID `bson:"emote_id"` Flags model.ActiveEmoteFlagModel `bson:"flags"` State []model.EmoteVersionState `bson:"state,omitempty"` URL string `bson:"url"` CreatedAt time.Time `bson:"created_at"` UpdatedAt time.Time `bson:"updated_at"` Count int `bson:"count"` }
Click to show internal directories.
Click to hide internal directories.