Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PointOfPresence ¶ added in v1.1.0
type PointOfPresence struct {
IP net.IP
IATA iata.IATA // Zero value if the colo code is unknown.
Trace map[string]string // All fields from Cloudflare, keyed by their original names.
}
PointOfPresence describes the Cloudflare data center that handled a trace request.
func Pop ¶ added in v1.1.0
func Pop() (PointOfPresence, error)
Pop fetches Cloudflare's trace and looks up the airport for its colo code.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mycfip
command
|
|
|
Package iata looks up airport coordinates and IANA time zones by IATA code.
|
Package iata looks up airport coordinates and IANA time zones by IATA code. |
|
Package loc represents geographic coordinates and computes distances between them.
|
Package loc represents geographic coordinates and computes distances between them. |
Click to show internal directories.
Click to hide internal directories.