forked from moul/go-freebox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnection.go
35 lines (31 loc) · 1.04 KB
/
connection.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
package freebox
import (
)
type ConnectionStatus struct {
Type string `json:"type"`
RateDown int `json:"rate_down"`
BytesUp int64 `json:"bytes_up"`
Ipv4PortRange []int `json:"ipv4_port_range"`
RateUp int `json:"rate_up"`
BandwidthUp int `json:"bandwidth_up"`
Ipv6 string `json:"ipv6"`
BandwidthDown int `json:"bandwidth_down"`
Media string `json:"media"`
State string `json:"state"`
BytesDown int64 `json:"bytes_down"`
Ipv4 string `json:"ipv4"`
}
type ConnectionStatusFull struct {
Type string `json:"type"`
RateDown int `json:"rate_down"`
BytesUp int64 `json:"bytes_up"`
Ipv4PortRange []int `json:"ipv4_port_range"`
RateUp int `json:"rate_up"`
BandwidthUp int `json:"bandwidth_up"`
Ipv6 string `json:"ipv6"`
BandwidthDown int `json:"bandwidth_down"`
Media string `json:"media"`
State string `json:"state"`
BytesDown int64 `json:"bytes_down"`
Ipv4 string `json:"ipv4"`
}