Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.0.11
type Client struct {
// contains filtered or unexported fields
}
Client can look up geography information for IP addresses.
func (*Client) GetGeoFromIP ¶ added in v0.0.11
func (c *Client) GetGeoFromIP(ip string) *GeoDetails
GetGeoFromIP returns geo details associated with an IP address if we have previously fetched it.
type GeoDetails ¶
type GeoDetails struct { CountryCode string `json:"countryCode"` RegionName string `json:"regionName"` TimeZone string `json:"timeZone"` }
GeoDetails stores details about a location.
Click to show internal directories.
Click to hide internal directories.