-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
100 lines (98 loc) · 3.59 KB
/
types.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package libhoggit
import "time"
type HoggitState struct {
Players int `json:"players,omitempty"`
UpdateTime time.Time `json:"updateTime,omitempty"`
Theater string `json:"theater,omitempty"`
Metar string `json:"metar,omitempty"`
Objects []Objects `json:"objects,omitempty"`
Airports []Airports `json:"airports,omitempty"`
Uptime float64 `json:"uptime,omitempty"`
Realtime float64 `json:"realtime,omitempty"`
ServerName string `json:"serverName,omitempty"`
StartTime int `json:"start_time,omitempty"`
MissionName string `json:"missionName,omitempty"`
MaxPlayers int `json:"maxPlayers,omitempty"`
Wx Wx `json:"wx,omitempty"`
}
type LatLongAlt struct {
Long float64 `json:"Long,omitempty"`
Lat float64 `json:"Lat,omitempty"`
Alt float64 `json:"Alt,omitempty"`
}
type Objects struct {
ID string `json:"Id,omitempty"`
LatLongAlt LatLongAlt `json:"LatLongAlt,omitempty"`
Type string `json:"Type,omitempty"`
Platform string `json:"Platform,omitempty"`
Pilot string `json:"Pilot,omitempty"`
Group string `json:"Group,omitempty"`
Coalition string `json:"Coalition,omitempty"`
Country string `json:"Country,omitempty"`
LastSeen int `json:"LastSeen,omitempty"`
Heading float64 `json:"Heading,omitempty"`
}
type Type struct {
Level1 int `json:"level1,omitempty"`
Level2 int `json:"level2,omitempty"`
Level3 int `json:"level3,omitempty"`
Level4 int `json:"level4,omitempty"`
}
type Airports struct {
LatLongAlt LatLongAlt `json:"LatLongAlt,omitempty"`
Coalition string `json:"Coalition,omitempty"`
ID int `json:"Id,omitempty"`
Name string `json:"Name,omitempty"`
Type Type `json:"Type,omitempty"`
Country int `json:"Country,omitempty"`
CoalitionID int `json:"CoalitionID,omitempty"`
}
type At8000 struct {
Dir int `json:"dir,omitempty"`
Speed float64 `json:"speed,omitempty"`
}
type At2000 struct {
Dir int `json:"dir,omitempty"`
Speed float64 `json:"speed,omitempty"`
}
type AtGround struct {
Dir int `json:"dir,omitempty"`
Speed float64 `json:"speed,omitempty"`
}
type Wind struct {
At8000 At8000 `json:"at8000,omitempty"`
At2000 At2000 `json:"at2000,omitempty"`
AtGround AtGround `json:"atGround,omitempty"`
}
type Season struct {
Temperature int `json:"temperature,omitempty"`
}
type Fog struct {
Thickness int `json:"thickness,omitempty"`
Visibility int `json:"visibility,omitempty"`
}
type Visibility struct {
Distance int `json:"distance,omitempty"`
}
type Clouds struct {
Density int `json:"density,omitempty"`
Thickness float64 `json:"thickness,omitempty"`
Preset string `json:"preset,omitempty"`
Base float64 `json:"base,omitempty"`
Iprecptns int `json:"iprecptns,omitempty"`
}
type Wx struct {
AtmosphereType int `json:"atmosphere_type,omitempty"`
GroundTurbulence int `json:"groundTurbulence,omitempty"`
EnableFog bool `json:"enable_fog,omitempty"`
Wind Wind `json:"wind,omitempty"`
Season Season `json:"season,omitempty"`
TypeWeather int `json:"type_weather,omitempty"`
Qnh float64 `json:"qnh,omitempty"`
Name string `json:"name,omitempty"`
Fog Fog `json:"fog,omitempty"`
EnableDust bool `json:"enable_dust,omitempty"`
DustDensity int `json:"dust_density,omitempty"`
Visibility Visibility `json:"visibility,omitempty"`
Clouds Clouds `json:"clouds,omitempty"`
}