Bugfixes. Optimizations/refactor. Add redis for player-cache. Add docker files. Replace sqlite dep. Single-Calc for existing players. Game-Metrics in JSON.

This commit is contained in:
MaxJa4
2024-01-21 00:49:20 +01:00
parent 069d76520e
commit da1108d441
41 changed files with 1154 additions and 203 deletions

16
models/tracker_json.go Normal file
View File

@@ -0,0 +1,16 @@
package models
type TrackerWeaponJSON struct {
Weapons []Weapon `json:"weapons"`
}
type Weapon struct {
Type string `json:"type"`
Name string `json:"weaponName"`
ID string `json:"id"`
Kills int `json:"kills"`
KPM float64 `json:"killsPerMinute"`
ShotsFired int `json:"shotsFired"`
ShotsHit int `json:"shotsHit"`
Accuracy float64 `json:"-"`
}