...
1 package server
2
3 const (
4 matchTypeCasual = iota
5 matchTypeRated
6 )
7
8 type leaderboardEntry struct {
9 User string
10 Rating int
11 }
12
13 type leaderboardResult struct {
14 Leaderboard []*leaderboardEntry
15 }
16
17 type serverStatsEntry struct {
18 Date string
19 Games int
20 }
21
22 type serverStatsResult struct {
23 History []*serverStatsEntry
24 }
25
26 type botStatsEntry struct {
27 Date string
28 Percent float64
29 Wins int
30 Losses int
31 }
32
33 type botStatsResult struct {
34 History []*botStatsEntry
35 }
36
View as plain text