-
Notifications
You must be signed in to change notification settings - Fork 6
/
structs.go
47 lines (40 loc) · 668 Bytes
/
structs.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
package ups
type Variables struct {
Head Head
Data classAccessesMap `xml:"Data"`
}
type Head struct {
Label string
Printer string
Count string
}
type classAccessesMap struct {
Map map[string]string
}
type Device struct {
Mandt string
Name string
IP string
Port string
Info string
DPI int
Peel bool
}
type Devices struct {
Devs map[string]*Device
}
type LogMsg struct {
Date string
Str string
Msgtype string
Dst string
Ip string
Label string
Weight string
}
type Connections struct {
clients map[chan LogMsg]bool
addClient chan chan LogMsg
removeClient chan chan LogMsg
messages chan LogMsg
}