emotes

package
v0.0.0-...-9fdc65e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL