Versions in this module Expand all Collapse all v1 v1.0.1 Aug 27, 2022 Changes in this version + var UseFreeApi bool = false + type Api struct + func New(userId, licenseKey string) *Api + func WithClient(api *Api, client *http.Client) *Api + func WithClientFunc(api *Api, ctxFunc func(context.Context, *http.Request) (*http.Response, error)) *Api + func (a *Api) City(ctx context.Context, ipAddress string) (Response, error) + func (a *Api) Country(ctx context.Context, ipAddress string) (Response, error) + func (a *Api) Insights(ctx context.Context, ipAddress string) (Response, error) + type City struct + Confidence int + GeoNameId int + Names map[string]string + type Continent struct + Code string + GeoNameId int + Names map[string]string + type Country struct + Confidence int + GeoNameId int + IsoCode string + Names map[string]string + type Error struct + Code string + Err string + func (e Error) Error() string + type Location struct + AccuracyRadius int + AverageIncome int + Latitude float64 + Longitude float64 + MetroCode int + PopulationDensity int + TimeZone string + type MaxMind struct + QueriesRemaining int + type Postal struct + Code string + Confidence int + type RegisteredCountry struct + GeoNameId int + IsoCode string + Names map[string]string + type RepresentedCountry struct + GeoNameId int + IsoCode string + Names map[string]string + Type string + type Response struct + City City + Continent Continent + Country Country + Location Location + MaxMind MaxMind + Postal Postal + RegisteredCountry RegisteredCountry + RepresentedCountry RepresentedCountry + Subdivisions []Subdivision + Traits Traits + type Subdivision struct + Confidence int + GeoNameId int + IsoCode string + Names map[string]string + type Traits struct + AutonomousSystemNumber int + AutonomousSystemOrganization string + Domain string + IpAddress string + IsAnonymousProxy bool + IsSatelliteProvider bool + Isp string + Organization string + UserType string