-
Notifications
You must be signed in to change notification settings - Fork 3
/
data.go
301 lines (300 loc) · 11.9 KB
/
data.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
package main
type infoSection struct {
ApCloudStorage struct {
LocalClientMeshLatencyTestResults struct {
} `json:"_localClientMeshLatencyTestResults"`
LocalClientSpeedTestResults struct {
} `json:"_localClientSpeedTestResults"`
WanConnectivityTestResult struct {
} `json:"_wanConnectivityTestResult"`
WanSpeedTestRequest struct {
DateTimeSecondsSinceEpoch int `json:"_dateTimeSecondsSinceEpoch"`
} `json:"_wanSpeedTestRequest"`
WanSpeedTestResults struct {
DateTimeSecondsSinceEpoch int `json:"_dateTimeSecondsSinceEpoch"`
DownloadSpeedBytesPerSecond int `json:"_downloadSpeedBytesPerSecond"`
UploadSpeedBytesPerSecond int `json:"_uploadSpeedBytesPerSecond"`
} `json:"_wanSpeedTestResults"`
WifiblasterSpeedTestResults struct {
PerStationThroughputResults []struct {
DateTimeSecondsSinceEpoch int `json:"_dateTimeSecondsSinceEpoch"`
DownlinkSpeedBitsPerSecond int `json:"_downlinkSpeedBitsPerSecond"`
StationID string `json:"_stationId"`
} `json:"_perStationThroughputResults"`
} `json:"_wifiblasterSpeedTestResults"`
} `json:"_apCloudStorage"`
ApConfiguration struct {
AnonymousMetricsCollection struct {
Enabled bool `json:"_enabled"`
} `json:"_anonymousMetricsCollection"`
AnonymousMetricsCollectionConfiguration struct {
Enabled bool `json:"_enabled"`
} `json:"_anonymousMetricsCollectionConfiguration"`
AutoUpdateChannelConfiguration struct {
Channel string `json:"_channel"`
} `json:"_autoUpdateChannelConfiguration"`
BackgroundDataCollectionConfiguration struct {
Enabled bool `json:"_enabled"`
} `json:"_backgroundDataCollectionConfiguration"`
BandSteeringConfiguration struct {
Enabled bool `json:"_enabled"`
} `json:"_bandSteeringConfiguration"`
BlockedStationsConfiguration struct {
Stations []interface{} `json:"_stations"`
} `json:"_blockedStationsConfiguration"`
BridgeMode struct {
Enabled bool `json:"_enabled"`
} `json:"_bridgeMode"`
BridgeModeConfiguration struct {
Enabled bool `json:"_enabled"`
} `json:"_bridgeModeConfiguration"`
ContentFilteringPolicyConfiguration struct {
Policies []interface{} `json:"_policies"`
Version string `json:"_version"`
} `json:"_contentFilteringPolicyConfiguration"`
DefaultPrioritizedDeviceConfiguration struct {
DurationInSeconds int `json:"_durationInSeconds"`
ID string `json:"_id"`
} `json:"_defaultPrioritizedDeviceConfiguration"`
DhcpConfiguration struct {
} `json:"_dhcpConfiguration"`
DhcpReservationConfiguration []struct {
ID string `json:"_id"`
IPAddress string `json:"_ipAddress"`
MacAddress string `json:"_macAddress"`
} `json:"_dhcpReservationConfiguration"`
DNSConfiguration struct {
Mode string `json:"_mode"`
Servers []interface{} `json:"_servers"`
ServersIpv6 []interface{} `json:"_serversIpv6"`
} `json:"_dnsConfiguration"`
ExposedPortConfiguration []interface{} `json:"_exposedPortConfiguration"`
FeaturesConfiguration struct {
EnabledFeatures []string `json:"_enabledFeatures"`
} `json:"_featuresConfiguration"`
FutureBlockedStationsConfiguration struct {
Stations []interface{} `json:"_stations"`
} `json:"_futureBlockedStationsConfiguration"`
GroupConfiguration struct {
Children []interface{} `json:"_children"`
GroupID string `json:"_groupId"`
} `json:"_groupConfiguration"`
GroupSetupNetworkConfiguration struct {
ExpireTimeInSecondsSinceEpoch int `json:"_expireTimeInSecondsSinceEpoch"`
Psk string `json:"_psk"`
Ssid string `json:"_ssid"`
} `json:"_groupSetupNetworkConfiguration"`
GuestNetworkConfiguration struct {
Enabled bool `json:"_enabled"`
SharedStations []struct {
ID string `json:"_id"`
WelcomeMatProperties string `json:"_welcomeMatProperties"`
} `json:"_sharedStations"`
Ssid string `json:"_ssid"`
WelcomeMat struct {
Enabled bool `json:"_enabled"`
IntroductionText string `json:"_introductionText"`
PhotoURL string `json:"_photoUrl"`
Title string `json:"_title"`
} `json:"_welcomeMat"`
} `json:"_guestNetworkConfiguration"`
Ipv6Configuration struct {
Enabled bool `json:"_enabled"`
Mode string `json:"_mode"`
Prefix string `json:"_prefix"`
PrefixLength int `json:"_prefixLength"`
Source string `json:"_source"`
} `json:"_ipv6Configuration"`
IspConfiguration struct {
IspType string `json:"_ispType"`
} `json:"_ispConfiguration"`
LightingConfiguration struct {
AutomaticIntensityEnabled bool `json:"_automaticIntensityEnabled"`
Intensity int `json:"_intensity"`
} `json:"_lightingConfiguration"`
MeshNetworkConfiguration struct {
Enabled bool `json:"_enabled"`
RootNode bool `json:"_rootNode"`
Ssid string `json:"_ssid"`
} `json:"_meshNetworkConfiguration"`
MonlogConfiguration struct {
} `json:"_monlogConfiguration"`
PortForwardingConfiguration []interface{} `json:"_portForwardingConfiguration"`
PrimaryPskNetworkConfiguration struct {
Enabled bool `json:"_enabled"`
Ssid string `json:"_ssid"`
} `json:"_primaryPskNetworkConfiguration"`
PrioritizedDeviceConfiguration struct {
ExpireTimeInSecondsSinceEpoch int `json:"_expireTimeInSecondsSinceEpoch"`
ID string `json:"_id"`
MacAddress string `json:"_macAddress"`
} `json:"_prioritizedDeviceConfiguration"`
PskNetworkConfiguration struct {
PrimaryPskEnabled bool `json:"_primaryPskEnabled"`
SecondaryPskEnabled bool `json:"_secondaryPskEnabled"`
Ssid string `json:"_ssid"`
} `json:"_pskNetworkConfiguration"`
RadioConfiguration []struct {
Channel int `json:"_channel"`
HtCapab string `json:"_htCapab"`
VhtOperCentrFreqSeg0Idx int `json:"_vhtOperCentrFreqSeg0Idx"`
VhtOperCentrFreqSeg1Idx int `json:"_vhtOperCentrFreqSeg1Idx"`
VhtOperChwidth string `json:"_vhtOperChwidth"`
} `json:"_radioConfiguration"`
RadiosConfiguration struct {
Ieee80211Channel []struct {
Channel int `json:"_channel"`
HtCapab string `json:"_htCapab"`
VhtOperCentrFreqSeg0Idx int `json:"_vhtOperCentrFreqSeg0Idx"`
VhtOperCentrFreqSeg1Idx int `json:"_vhtOperCentrFreqSeg1Idx"`
VhtOperChwidth string `json:"_vhtOperChwidth"`
} `json:"_ieee80211Channel"`
RegulatoryRules struct {
BandPermissions []struct {
BandwidthMhz int `json:"_bandwidthMhz"`
LowerFreqMhz int `json:"_lowerFreqMhz"`
MaxEirpMbm int `json:"_maxEirpMbm"`
RegRuleFlags []string `json:"_regRuleFlags"`
UpperFreqMhz int `json:"_upperFreqMhz"`
} `json:"_bandPermissions"`
DfsRegion string `json:"_dfsRegion"`
RegulationRulesCountry string `json:"_regulationRulesCountry"`
} `json:"_regulatoryRules"`
} `json:"_radiosConfiguration"`
RouterConfiguration struct {
IPAddress string `json:"_ipAddress"`
Netmask string `json:"_netmask"`
PoolBegin string `json:"_poolBegin"`
PoolEnd string `json:"_poolEnd"`
} `json:"_routerConfiguration"`
RrmConfiguration struct {
Enabled bool `json:"_enabled"`
} `json:"_rrmConfiguration"`
RuntimeFlags []interface{} `json:"_runtimeFlags"`
SetupConfiguration struct {
} `json:"_setupConfiguration"`
StationPolicyConfiguration struct {
Stations []interface{} `json:"_stations"`
} `json:"_stationPolicyConfiguration"`
UpnpConfiguration struct {
Enabled bool `json:"_enabled"`
} `json:"_upnpConfiguration"`
WanConfiguration struct {
ConnectionType string `json:"_connectionType"`
PppoeConfiguration struct {
Username string `json:"_username"`
} `json:"_pppoeConfiguration"`
StaticConfiguration struct {
Gateway string `json:"_gateway"`
IPAddress string `json:"_ipAddress"`
Netmask string `json:"_netmask"`
} `json:"_staticConfiguration"`
} `json:"_wanConfiguration"`
} `json:"_apConfiguration"`
ApCredentials struct {
MonlogCredentials struct {
Nonce int `json:"_nonce"`
Provisioned bool `json:"_provisioned"`
} `json:"_monlogCredentials"`
} `json:"_apCredentials"`
ApGroup struct {
CurrentMeshKey struct {
BundleKek string `json:"_bundleKek"`
BundleMac string `json:"_bundleMac"`
ExpiryTimeSecondsSinceEpoch int `json:"_expiryTimeSecondsSinceEpoch"`
} `json:"_currentMeshKey"`
} `json:"_apGroup"`
ApInsights struct {
NewFeatures struct {
} `json:"_newFeatures"`
UploadDiagnosticReportResult []interface{} `json:"_uploadDiagnosticReportResult"`
} `json:"_apInsights"`
ApState struct {
AutoUpdate struct {
Channel string `json:"_channel"`
NewVersion string `json:"_newVersion"`
Status string `json:"_status"`
} `json:"_autoUpdate"`
BlockedStations struct {
Stations []interface{} `json:"_stations"`
} `json:"_blockedStations"`
CertHash string `json:"_certHash"`
Child struct {
Lost bool `json:"_lost"`
} `json:"_child"`
Country struct {
Code string `json:"_code"`
} `json:"_country"`
DeveloperMode struct {
Enabled bool `json:"_enabled"`
} `json:"_developerMode"`
DeviceInformation struct {
SerialNumber string `json:"_serialNumber"`
} `json:"_deviceInformation"`
DNS struct {
Servers []string `json:"_servers"`
ServersIpv6 []string `json:"_serversIpv6"`
} `json:"_dns"`
Ipv6 struct {
Enabled bool `json:"_enabled"`
NonTemporaryAddressReceived bool `json:"_nonTemporaryAddressReceived"`
PrefixDelegationReceived bool `json:"_prefixDelegationReceived"`
Status string `json:"_status"`
} `json:"_ipv6"`
Lan struct {
Bridged bool `json:"_bridged"`
ID string `json:"_id"`
Ids []string `json:"_ids"`
} `json:"_lan"`
Setup struct {
Complete bool `json:"_complete"`
EncodedSsidPsk string `json:"_encodedSsidPsk"`
} `json:"_setup"`
Stations []struct {
CategorizationSignals []struct {
Name string `json:"_name"`
Value string `json:"_value"`
} `json:"_categorizationSignals"`
Connected bool `json:"_connected"`
DhcpHostname string `json:"_dhcpHostname"`
Guest bool `json:"_guest"`
ID string `json:"_id"`
IPAddresses []string `json:"_ipAddresses"`
LastSeenSecondsSinceEpoch int `json:"_lastSeenSecondsSinceEpoch"`
MdnsNames []string `json:"_mdnsNames"`
OtherIPAddresses []interface{} `json:"_otherIpAddresses"`
Oui string `json:"_oui"`
TaxonomyIds []string `json:"_taxonomyIds"`
UpnpAttributes []struct {
Name string `json:"_name"`
Value string `json:"_value"`
} `json:"_upnpAttributes"`
Wireless bool `json:"_wireless"`
WirelessBand string `json:"_wirelessBand"`
} `json:"_stations"`
VorlonTransitionMode struct {
Mode string `json:"_mode"`
} `json:"_vorlonTransitionMode"`
Wan struct {
GatewayAddress string `json:"_gatewayAddress"`
IPAddress string `json:"_ipAddress"`
LinkSpeedMbps int `json:"_linkSpeedMbps"`
} `json:"_wan"`
} `json:"_apState"`
CloudActionConfiguration struct {
Credential struct {
Provisioned bool `json:"_provisioned"`
} `json:"_credential"`
} `json:"_cloudActionConfiguration"`
LocalActionConfiguration struct {
HueBridgeConfiguration struct {
HueBridges []interface{} `json:"_hueBridges"`
} `json:"_hueBridgeConfiguration"`
} `json:"_localActionConfiguration"`
Base struct {
FirmwareVersion string `json:"firmwareVersion"`
LocalAnonymousAccessMaxRole string `json:"localAnonymousAccessMaxRole"`
LocalDiscoveryEnabled bool `json:"localDiscoveryEnabled"`
LocalPairingEnabled bool `json:"localPairingEnabled"`
} `json:"base"`
}