geolookup

package
v0.0.0-...-fd97e0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2016 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(proxyAddrFN eventual.Getter)

Configures geolookup to use the given proxyAddrFN to determine which proxy to use.

func GetCountry

func GetCountry(timeout time.Duration) string

GetCountry gets the country. If the country hasn't been determined yet, waits up to the given timeout for a country to become available.

func GetIP

func GetIP(timeout time.Duration) string

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 Refresh

func Refresh()

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL