Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRateLimited = errors.New("rate limited, try again later")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client makes queries to the API.
func (*Client) SetOnRequest ¶ added in v0.0.2
SetOnRequest sets a hook to execute before a request is made. The argument is the URL that is to be queried with the API key redacted.
func (*Client) SetOnResponse ¶ added in v0.0.2
SetOnResponse sets a hook to execute once a response is received, before it is parsed. The arguments are the HTTP status and response body.
func (*Client) SetVerbose
deprecated
type Location ¶
type Location struct { City string `json:"city"` Region string `json:"region"` Country string `json:"country"` Continent string `json:"contient"` RegionCode string `json:"region_code"` CountryCode string `json:"country_code"` ContinentCode string `json:"continent_code"` Latitude string `json:"latitude"` Longitude string `json:"longitude"` TimeZone string `json:"time_zone"` LocaleCode string `json:"locale_code"` MetroCode string `json:"metro_code"` IsInEuropeanUnion bool `json:"is_in_european_union"` }
The location section of a response
type Network ¶
type Network struct { Network string `json:"network"` AutonomousSystemNumber string `json:"autonomous_system_number"` AutonomousSystemOrganization string `json:"autonomous_system_organization"` }
The network section of a response
Click to show internal directories.
Click to hide internal directories.