model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LowLatencyStatistics = GlobalStatistics{Last_updated: time.Date(1990, 1, 1, 1, 1, 1, 1, time.UTC)}
)

Functions

This section is empty.

Types

type GlobalStatistics

type GlobalStatistics struct {
	Bans            int
	Skills          map[string]int64 // Skill : Experience directly from Hiscores
	Minigames       map[string]int64 // Minigame/activity : score directly from Hiscores
	TotalExperience int64
	SuspiciousUsers int
	Last_updated    time.Time
}

type LoginType

type LoginType struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Hcaptcha string `json:"h-captcha-response"`
	Gcaptcha string `json:"g-recaptcha-response"`
}

type MachineLearningMetrics

type MachineLearningMetrics struct {
	ROCAUC         float64 `json:"ROC-AUC"`
	MeanAccuracy   float64 `json:"Mean Accuracy"`
	RecallClass0   float64 `json:"Recall Class 0"`
	RecallClass1   float64 `json:"Recall Class 1"`
	AccuracyClass0 float64 `json:"Accuracy Class 0"`
	AccuracyClass1 float64 `json:"Accuracy Class 1"`
}

type MinigameToplist

type MinigameToplist struct {
	Minigame    string                 `json:"minigame"`
	LastUpdated time.Time              `json:"lastUpdated"`
	Count       int                    `json:"count"`
	Metrics     MachineLearningMetrics `json:"Metrics"`
}

type Player

type Player struct {
	Username string

	SkillGains      map[string]float64 // these are daily stats so float is required.
	SkillGainsRatio map[string]float64
	MinigameGains   map[string]float64

	Skills          map[string]int64 // Skill : Experience directly from Hiscores
	SkillLevels     map[string]int
	SkillRatios     map[string]float64 // 32 bits will have enough useful data
	Minigames       map[string]int
	CombatLevel     int
	TotalLevel      int
	TotalExperience int64
}

type ProfileStats

type ProfileStats struct {
	Username         string
	BotsTracked      int
	BotsBanned       int
	BotsPlayerIds    []int
	BannedExperience int64
	PlayersAdded     int
}

type RegisterType

type RegisterType struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Hcaptcha string `json:"h-captcha-response"`
	Gcaptcha string `json:"g-recaptcha-response"`
}

type SimplePlayer

type SimplePlayer struct {
	Username        string
	PID             int
	CombatLevel     int
	TotalLevel      int
	TotalExperience int64
	Skills          map[string]int // Skill : Experience directly from Hiscores
	SkillLevels     map[string]int
	SkillRatios     map[string]float32 // 32 bits will have enough useful data
	Minigames       map[string]int     // Minigame/activity : score directly from Hiscores
}

type Toplist

type Toplist struct {
	Id          int       `json:"id"`
	LastUpdated time.Time `json:"lastUpdated"`
	Activities  []string  `json:"Activities"`

	LifetimeCount int `json:"lifetimeCount"`
	UnbannedCount int `json:"UnbannedCount"`
	BannedCount   int `json:"BannedCount"`

	UnbannedPlayerIds []int `json:"unbannedPlayerIds"`
	BannedPlayerIds   []int `json:"bannedPlayerIds"`
}

Jump to

Keyboard shortcuts

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