Versions in this module Expand all Collapse all v0 v0.1.0 Feb 4, 2024 Changes in this version + const DefaultMiniPaginate + const DefaultPaginate + const DefaultTimeout + var Conn *sql.DB + var ErrBGNotFound = errors.New("background file not found") + var ErrInvalidPath = errors.New("invalid game path") + var ErrNoScores = errors.New("no scores") + func CountPlaycountDates(uid, mode int, dates map[string]int) error + func GetImage(id int) (string, error) + func GetTotalRecent(uid, mode int, hideFailed bool) (int, error) + func GetUserJudgements() ([]string, error) + func GraphCreateRange(earliest time.Time, dates map[string]int) + func GraphDateEarliest(uid, mode int) (time.Time, error) + func LoadDB() error + func TestConnection() error + type CountedScoreBoard struct + Scores []ScoreBoard + Total int + type GradesCountStat struct + AllGrades map[string]int + RankedGrades map[string]int + func GetGradeCount(uid, mode int, pbOnly bool) (GradesCountStat, error) + type JudgeCountStat struct + CountGood int + CountGreat int + CountMarv int + CountMiss int + CountOkay int + CountPerf int + func GetJudgesCountStats(uid, mode int) (JudgeCountStat, error) + type LocalUsers struct + Id string + Username string + type LongestMap struct + Map struct{ ... } + MapID int + ScoreID int + Total int + type LongestStat struct + Combo LongestMap + Hits LongestMap + func GetLongestStats(uid, mode int) (LongestStat, error) + type MostPlayed struct + Creator string + DifficultyName string + MapID int + PlayCount int + Title string + func GetMostPlayed(uid, mode, page int) ([]MostPlayed, error) + type OverallStats struct + Accuracy float64 + Performance float64 + RankedAccuracy float64 + func GetOverallStats(uid, mode int) (OverallStats, error) + type PlayStats struct + Failed int + Passed int + Playcount int + func GetPlayStats(uid, mode int) (PlayStats, error) + type ScoreBoard struct + Map struct{ ... } + MapID int + Score struct{ ... } + ScoreID int + func GetBestScores(uid, mode, page int, judgementWindowPreset string, RankedStatus string, ...) ([]ScoreBoard, error) + func GetRecentScores(uid, mode, page int, hideFailed bool) ([]ScoreBoard, error) + type ScoreDetails struct + Map struct{ ... } + MapID int + Score struct{ ... } + ScoreID int + func GetScoreDetails(id int) (ScoreDetails, error) + type TotalStats struct + Hits uint64 + Score uint64 + func GetTotalStats(uid, mode int) (TotalStats, error) + type Users struct + Local []LocalUsers + Unknown []LocalUsers + func GetUsers() (Users, error)