testing

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL