Documentation ¶
Index ¶
Constants ¶
View Source
const ( // APINetIXLAN holds net ix lan API APINetIXLAN = "https://www.peeringdb.com/api/netixlan" // APINet holds net API APINet = "https://www.peeringdb.com/api/net" )
Variables ¶
This section is empty.
Functions ¶
func GetNet ¶ added in v0.1.9
func GetNet() (interface{}, error)
GetNet fetchs net information from peeringdb
Types ¶
type Net ¶ added in v0.1.7
type Net struct { Name string `json:"name"` ASN int `json:"asn"` WWW string `json:"website"` Traffic string `json:"info_traffic"` InfoType string `json:"info_type"` Note string `json:"notes"` }
A Net represents peeringdb net record
type Nets ¶ added in v0.1.7
type Nets struct {
Data []Net `json:"data"`
}
Nets represents network information data
Click to show internal directories.
Click to hide internal directories.