Documentation
¶
Overview ¶
This plugin provides geolocation information for IP addresses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct {
IPInfo struct {
IPAddress string `json:"ip_address"`
IPType string `json:"ip_type"`
Network struct {
Organization string `json:"organization"`
Carrier string `json:"carrier"`
Domain struct {
TLD string `json:"tld"`
SLD string `json:"sld"`
} `json:"Domain"`
} `json:"Network"`
Location struct {
Continent string `json:"continent"`
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
CountryData struct {
Name string `json:"country"`
} `json:"CountryData"`
StateData struct {
Name string `json:"state"`
} `json:"StateData"`
CityData struct {
Name string `json:"city"`
PostalCode string `json:"postal_code"`
TimeZone int `json:"time_zone"`
} `json:"StateData"`
} `json:"location"`
} `json:"ipinfo"`
}
Response holds the unmarshalled response data for a single API call.
Click to show internal directories.
Click to hide internal directories.