-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.go
34 lines (29 loc) · 858 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
package edgecast
// BandwidthData holds that data of a request
// to the edgecast bandwidth API
type BandwidthData struct {
Bps float64
Platform int
}
// ConnectionData holds that data of a request
// to the edgecast connections API
type ConnectionData struct {
Connections float64
Platform int
}
// CacheStatusData represends all fields returned from
// a request to the /cachestatus endpoint
type CacheStatusData []struct {
CacheStatus string `json:"CacheStatus"`
Connections int64 `json:"Connections"`
}
// StatusCodeData represends all fields returned from
// a request to the /statuscode endpoint
type StatusCodeData []struct {
Connections int64 `json:"Connections"`
StatusCode string `json:"StatusCode"`
}
// RawEdgecastResult represends a raw JSON response object from the API
type RawEdgecastResult struct {
Result float64
}