Documentation
¶
Overview ¶
Code generated by latencygen. DO NOT EDIT. source: cmd/latencygen/latencies/wonderproxy.csv
Index ¶
Constants ¶
View Source
const DefaultLocation = "default"
View Source
const SourceFile = "cmd/latencygen/latencies/wonderproxy.csv"
SourceFile is the CSV file used to generate this latency matrix.
Variables ¶
This section is empty.
Functions ¶
func Between ¶
Between returns the latency between locations a and b. If a or b are not valid locations, the function will panic.
func ValidLocation ¶
ValidLocation returns the location if it is valid, or an error otherwise.
Types ¶
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
Matrix represents a latency matrix and locations.
func MatrixFrom ¶
MatrixFrom returns the latencies between the given locations. If a location is not valid, the function will panic.
Click to show internal directories.
Click to hide internal directories.