forked from bnhf/go-openvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
48 lines (43 loc) · 815 Bytes
/
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
package mi
//Version .
type Version struct {
OpenVPN string
Management string
}
//LoadStats .
type LoadStats struct {
NClients int64
BytesIn int64
BytesOut int64
}
//Status .
type Status struct {
Title string
Time string
TimeT string
ClientList []*OVClient
RoutingTable []*RoutingPath
}
//OVClient .
type OVClient struct {
CommonName string
RealAddress string
VirtualAddress string
VirtualIPv6 string
BytesReceived uint64
BytesSent uint64
ConnectedSince string
ConnectedSinceT string
Username string
ClientID string
PeerID string
DataCipher string
}
//RoutingPath .
type RoutingPath struct {
VirtualAddress string
CommonName string
RealAddress string
LastRef string
LastRefT string
}