Documentation
¶
Index ¶
Constants ¶
View Source
const ProURL = "https://pro.ip-api.com"
ProURL is the pro URL for api key.
View Source
const StandardURL = "http://ip-api.com"
StandardURL is the primary URL.
Variables ¶
View Source
var ( ErrReservedRange = errors.New("reserved range") ErrPrivateRange = errors.New("private range") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClientWithAPIKey ¶
type Location ¶
type Location struct {
As string `json:"as"`
City string `json:"city"`
Country string `json:"country"`
CountryCode string `json:"countryCode"`
Isp string `json:"isp"`
Lat float32 `json:"lat"`
Lon float32 `json:"lon"`
Message string `json:"message"`
Org string `json:"org"`
Query string `json:"query"`
Region string `json:"region"`
RegionName string `json:"regionName"`
Status string `json:"status"`
Timezone string `json:"timezone"`
Zip string `json:"zip"`
}
Location contains all the relevant data for an IP.
Click to show internal directories.
Click to hide internal directories.