-
Notifications
You must be signed in to change notification settings - Fork 3
/
pagedatas.go
60 lines (52 loc) · 1.16 KB
/
pagedatas.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package db
// MatchesPageData Struct for /matches/ page.
type MatchesPageData struct {
LoggedIn bool
UserName string
UserID int
Matches []MatchData
AllMatches bool
MyMatches bool
Owner UserData
}
// MatchPageData Struct for /match/{matchID} page.
type MatchPageData struct {
LoggedIn bool
AdminAccess bool
Match MatchData
}
// TeamsPageData Struct for /teams/{userID} page.
type TeamsPageData struct {
LoggedIn bool
User UserData
IsYourTeam bool
Teams []TeamData
}
// TeamPageData Struct for /team/{teamID} page.
type TeamPageData struct {
LoggedIn bool
IsYourTeam bool
User UserData
Team TeamData
}
// UserPageData Struct for /user/{userID} page.
type UserPageData struct {
LoggedIn bool
User UserData
}
// MyserversPageData Struct for /myservers page.
type MyserversPageData struct {
Servers []GameServerData
LoggedIn bool
}
// TeamCreatePageData Struct for /team/create page.
type TeamCreatePageData struct {
LoggedIn bool
Edit bool
Content interface{} // should be template
}
// MetricsDataPage Struct for /metrics page.
type MetricsDataPage struct {
LoggedIn bool
Data MetricsData
}