-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstruct.go
More file actions
76 lines (64 loc) · 1.35 KB
/
struct.go
File metadata and controls
76 lines (64 loc) · 1.35 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package main
import (
"time"
)
type appVersionData struct {
Build_mode string
Build_version int
Game_version string
Platform string
}
type CacheData struct {
Version int
Servers []ServerListItem
}
type ServerListItem struct {
Application_version appVersionData
Description string
Game_time_elapsed interface{}
Has_password bool
Host_address string
Mod_count int
Name string
Players []string
Tags []string
//Local data
Local ServerMetaData
}
// Server state
type ServerStateData struct {
URL, Query, Token, Username *string
ServerList CacheData
LastRefresh time.Time
LastAttempt time.Time
ServersCount,
PlayerCount,
NumPages,
CurrentPage,
ItemsPerPage int
FTag, FName, FDesc, FPlayer bool
SPlayers, SName, STime, SRTime bool
VanillaOnly, ModdedOnly bool
HasPass, AnyPass bool
HasPlay, NoPlay bool
VersionList []VersionData
FVersion, UserAgent, Searched string
}
type VersionData struct {
Version string
Count int
}
type versionInt struct {
a, b, c int
}
type ServerMetaData struct {
ConnectURL string
TimeStr string
Minutes int
Modded bool
Players int
HasPlayers bool
Icon string
Homepage string
Discord string
}