This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmasks.go
122 lines (104 loc) · 2.92 KB
/
masks.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
package libwimark
type LimitBetween struct {
Upper float64 `json:"upper"`
Lower float64 `json:"lower"`
}
type LimitBetweenOptional struct {
Upper *float64 `json:"upper"`
Lower *float64 `json:"lower"`
}
type BaseLocationMask struct {
UUID []UUID `json:"uuid"`
LocationID []UUID `json:"location_id"`
Model []string `json:"model"`
ModelID []UUID `json:"model_id"`
}
type SimpleMask struct {
UUID []UUID `json:"uuid"`
}
type TimestampMask struct {
UUID []UUID `json:"uuid"`
Start *int64 `json:"start"`
Stop *int64 `json:"stop"`
}
type EventMask struct {
TimestampMask
Type []SystemEventType `json:"type"`
Subject_id []string `json:"subject_id"`
Level []SystemEventLevel `json:"level"`
}
type ClientStatMask struct {
TimestampMask
CPE []UUID
CallingStationId []string
}
type CPEMask struct {
UUID []UUID `json:"uuid"`
HasWLANs []UUID `json:"has_wlans"`
Connected *bool `json:"connected"`
HasL2Chains []UUID `json:"has_l2chains"`
HasController []string `json:"has_controller"`
HasCaptiveRedirects []UUID `json:"has_redirects"`
}
type WLANMask struct {
UUID []UUID `json:"uuid"`
HasRadius []UUID `json:"has_radius"`
HasL2Chains []UUID `json:"has_l2chains"`
HasCaptiveRedirects []UUID `json:"has_redirects"`
HasHotspotProfiles []UUID `json:"has_hotspots"`
}
type StatsMask struct {
UUID []UUID `json:"uuid"`
CPEUUID []UUID `json:"cpe"`
Start *int64 `json:"start"`
Stop *int64 `json:"stop"`
}
type LBSClientDataMask struct {
TimestampMask
CPE []UUID `json:"cpe"`
Radio []string `json:"radio"`
ClientMac []string `json:"client_mac"`
RSSI []int `json:"rssi"`
}
type LBSCPEInfoMask struct {
SimpleMask
Group []UUID `json:"group"`
CPE []UUID `json:"cpe"`
Name []string `json:"name"`
X LimitBetweenOptional `json:"x"`
Y LimitBetweenOptional `json:"y"`
Z LimitBetweenOptional `json:"z"`
}
type LBSClientCoordsMask struct {
TimestampMask
Group []UUID `json:"group"`
Mac []string `json:"mac"`
X LimitBetweenOptional `json:"x"`
Y LimitBetweenOptional `json:"y"`
Z LimitBetweenOptional `json:"z"`
}
type CPEModelMask struct {
UUID []UUID `json:"uuid"`
Names []string `json:"names"`
}
type ConfigRuleMask struct {
UUID []UUID `json:"uuid"`
CPEs []UUID `json:"has_cpes"`
Models []UUID `json:"has_models"`
WLANs []UUID `json:"has_wlans"`
HasL2Chains []UUID `json:"has_l2chains"`
Auto *bool `json:"is_auto"`
Always *bool `json:"is_always"`
}
type ControllerMask struct {
UUID []UUID `json:"uuid"`
Enabled *bool `json:"is_enabled"`
}
type ExtAccessPointMask struct {
UUID []UUID `json:"uuid"`
Names []string `json:"names"`
}
type RRMGroupMask struct {
UUID []UUID `json:"uuid"`
CPEs []UUID `json:"has_cpes"`
}