Documentation ¶
Overview ¶
Package ripe provides ASN and IP information
Index ¶
Constants ¶
View Source
const ( // RIPEAPI holds RIPE API URL RIPEAPI = "https://stat.ripe.net" // RIPEPrefixURL holds RIPE prefix path RIPEPrefixURL = "/data/prefix-overview/data.json?max_related=50&resource=" // RIPEASNURL holds RIPE ASN path RIPEASNURL = "/data/as-overview/data.json?resource=AS" // RIPEGeoURL holds Geo path RIPEGeoURL = "/data/geoloc/data.json?resource=" // RIPEMyIPURL holds myIP path RIPEMyIPURL = "/data/whats-my-ip/data.json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ASN ¶
ASN represents ASN information
func (*ASN) GetGeoData ¶ added in v0.1.8
GetGeoData gets Geo information from RIPE NCC
type Geo ¶ added in v0.2.5
type Geo struct { Status string Data struct { Locations []struct { City string Country string Longitude float64 Latitude float64 } } }
Geo represents RIPE NCC Geo format
type Prefix ¶ added in v0.1.7
Prefix represents prefix information
func (*Prefix) GetGeoData ¶ added in v0.2.5
GetGeoData gets Geo information from RIPE NCC
func (*Prefix) PrettyPrint ¶ added in v0.1.7
func (p *Prefix) PrettyPrint()
PrettyPrint print ASN information (holder)
Click to show internal directories.
Click to hide internal directories.