-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathmessages.go
131 lines (126 loc) · 4.57 KB
/
messages.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
package cot
import "strings"
var messages = map[string]string{
"b-a-g": "Alert: GeoFenceBreach",
"b-a-o-can": "Alert: Cancel",
"b-a-o-opn": "Alert: TroopsInContact",
"b-a-o-pan": "Alert: RingTheBell",
"b-a-o-tbl": "Alert: 911",
"b-d": "Detection",
"b-d-a": "Detection/Acoustic",
"b-d-a-c": "Detection/Acoustic/Cyclostationary",
"b-d-a-i": "Detection/Acoustic/Impulsive",
"b-d-a-v": "Detection/Acoustic/Voice",
"b-d-c": "Detection/CBRNE",
"b-d-c-b": "Detection/CBRNE/BioChem",
"b-d-c-b-b": "Detection/CBRNE/BioChem/Biological",
"b-d-c-b-c": "Detection/CBRNE/BioChem/Chemical",
"b-d-c-e": "Detection/CBRNE/Explosive",
"b-d-c-e-d": "Detection/CBRNE/Explosive/Device",
"b-d-c-n": "Detection/CBRNE/NuclearRadiological",
"b-d-c-n-n": "Detection/CBRNE/NuclearRadiological/Nuclear",
"b-d-c-n-n-b": "Detection/CBRNE/NuclearRadiological/Nuclear/Bomb",
"b-d-c-n-n-sm": "Detection/CBRNE/NuclearRadiological/Nuclear/Special Nuclear Material",
"b-d-c-n-r": "Detection/CBRNE/NuclearRadiological/Radiation",
"b-d-c-n-r-dd": "Detection/CBRNE/NuclearRadiological/Radiological/Dispersal Device (Dirty Bomb)",
"b-d-i": "Detection/Impact",
"b-d-i-m": "Detection/Impact/Mortar",
"b-d-l": "Detection/Launch",
"b-d-l-b": "Detection/Launch/Bullet",
"b-d-l-m": "Detection/Launch/Mortar",
"b-d-m": "Detection/Motion",
"b-d-s": "Detection/Seismic",
"b-f-t-a": "File send receipt",
"b-f-t-r": "File send",
"b-i": "Imagery",
"b-i-v": "Video feed",
"b-i-x-i": "Photo",
"b-l": "Alarm",
"b-m": "Mapping",
"b-m-c": "Chemlight",
"b-m-c-b": "Chemlight Blue",
"b-m-c-g": "Chemlight Green",
"b-m-c-r": "Chemlight Red",
"b-m-c-y": "Chemlight Yellow",
"b-m-d": "Map drawing",
"b-m-p": "Designated point",
"b-m-p-a": "Aimpoint",
"b-m-p-c": "Control point",
"b-m-p-c-cp": "Contact point",
"b-m-p-c-ip": "Initial point",
"b-m-p-c-z": "Black triangle",
"b-m-p-i": "Initial point",
"b-m-p-s": "Sensor point",
"b-m-p-s-m": "Spot point",
"b-m-p-s-p-i": "Point of interest",
"b-m-p-s-p-loc": "Sensor",
"b-m-p-s-p-op": "Observation point",
"b-m-p-t": "Target point",
"b-m-p-w": "Checkpoint",
"b-m-p-w-GOTO": "Waypoint flag",
"b-m-r": "Route",
"b-r": "Report",
"b-r-f-h-c": "Casevac",
"b-t-f": "Chat message",
"b-t-f-d": "Chat delivery receipt",
"b-t-f-p": "Chat pending receipt",
"b-t-f-r": "Chat read receipt",
"b-t-f-s": "Chat delivery failure",
"b-w": "Weather",
"c": "Capability",
"r": "Area restrictions",
"r-c": "Contaminated",
"r-c-x-b": "Biological attack",
"r-c-x-c": "Chemical attack",
"r-f": "Flight restrictions",
"r-o": "Occupied",
"r-u": "Unsafe",
"t": "Tasking",
"t-a": "Air request",
"t-b": "Add Subscription",
"t-b-c": "Delete Subscription",
"t-b-q": "durable messaging control message",
"t-k": "Strike request",
"t-k-d": "Strike destroy",
"t-k-i": "Strike investigate",
"t-k-t": "Strike target",
"t-s": "ISR",
"t-p": "Pairing request",
"t-x": "Extended request",
"t-x-c-g-d": "dgps message",
"t-x-c-i-d": "Unset incognito mode",
"t-x-c-i-e": "Set incognito mode",
"t-x-c-m": "Metrics message",
"t-x-c-t": "Ping",
"t-x-c-t-r": "Pong",
"t-x-d-d": "Delete by link",
"t-x-m-c": "Mission Change Notification",
"t-x-m-c-l": "Mission Log Added Notification",
"t-x-m-n": "Mission Creation Notification",
"u-d": "Drawing",
"u-d-c-c": "Drawing Shapes – Circle",
"u-d-c-e": "Drawing Shapes – Ellipse",
"u-d-f": "Drawing Shapes - Multiline",
"u-d-f-m": "Drawing Shapes – Freehand",
"u-d-r": "Drawing Shapes – Rectangle",
"u-d-v-m": "Drawing: model",
"u-r-b-c-c": "Range & Bearing - Circle",
"u-rb-a": "Range & Bearing – Line",
"y": "Task Reply",
"y-a": "Ack",
"y-a-r": "Rcvd",
"y-a-w": "Wilco",
"y-c": "Tasking Complete",
"y-c-f": "Fail",
"y-c-s": "Complete: Success",
"y-s": "Status",
}
func GetMsgType(t string) string {
if strings.HasPrefix(t, "a-") {
return "Atom"
}
if tt, ok := messages[t]; ok {
return tt
}
return "Unknown"
}