Documentation ¶
Index ¶
Constants ¶
View Source
const TestGetTrafficInvalidDataResponseRaw = `
{
"traffic": {
"domain": {
123: {}
}
}
}
`
TestGetTrafficInvalidDataResponseRaw represents a raw response from the Get request with invalid traffic data.
View Source
const TestGetTrafficInvalidTimestampsRaw = `` /* 746-byte string literal not displayed */
TestGetTrafficInvalidTimestampsRaw represents a raw response from the Get request with invalid timestamps.
View Source
const TestGetTrafficRaw = `` /* 668-byte string literal not displayed */
TestGetTrafficRaw represents a raw response from the Get request.
View Source
const TestGetTrafficUsedRaw = `` /* 277-byte string literal not displayed */
TestGetTrafficUsedRaw represents a raw response from the Get request with only used traffic.
Variables ¶
View Source
var TestGetTrafficUsed = &traffic.DomainTraffic{ DomainData: []*traffic.Traffic{ { Type: "used", TrafficData: traffic.Data{ Start: trafficStartTimeStamp, Stop: trafficStopTimeStamp, Unit: "B", Value: 658003816, }, }, }, }
TestGetTrafficUsed represents the unmarshalled TestGetTrafficUsedRaw response.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.