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:
16
models/tracker_json.go
Normal file
16
models/tracker_json.go
Normal 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:"-"`
|
||||
}
|
||||
Reference in New Issue
Block a user