Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // GetLocation gets the location for the given ip GetLocation(ctx context.Context, ip string) (*WorldLocation, error) }
Client is a client for the locator service.
type WorldLocation ¶
type WorldLocation struct { // Lat is the latitude of the location. Lat float64 // Long is the longitude of the location. Long float64 // City is the city of the location. City string // Region is the region/state of the location. Region string // Country is the country of the location. Country string }
WorldLocation represents the location for the given IP address.
Click to show internal directories.
Click to hide internal directories.