The highest tagged major version is
v7 .
Discover Packages
github.com/getlantern/flashlight
geolookup
package
Version:
v0.0.0-...-3c82484
Opens a new window with list of versions in this module.
Published: Jul 8, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetCountry gets the country. If the country hasn't been determined yet, waits
up to the given timeout for a country to become available.
GetIP gets the IP. If the IP hasn't been determined yet, waits up to the
given timeout for an IP to become available.
func OnRefresh() <-chan bool
OnRefresh creates a channel that caller can receive on when new geolocation
information is got.
Refresh refreshes the geolookup information by calling the remote geolookup
service. It will keep calling the service until it's able to determine an IP
and country.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.