stats

package
v0.0.0-...-1120f02 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Name  string
	Count int64
}

type Stats

type Stats struct {
	Commands map[string]*atomic.Int64
	Artworks map[string]*atomic.Int64
	// contains filtered or unexported fields
}

func New

func New(router *gumi.Router, providers []artworks.Provider) *Stats

func (*Stats) ArtworkStats

func (m *Stats) ArtworkStats() ([]Item, int64)

func (*Stats) CommandStats

func (m *Stats) CommandStats() ([]Item, int64)

func (*Stats) IncrementArtwork

func (m *Stats) IncrementArtwork(provider artworks.Provider)

func (*Stats) IncrementCommand

func (m *Stats) IncrementCommand(cmd string)

Jump to

Keyboard shortcuts

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