Documentation
¶
Index ¶
Constants ¶
View Source
const MaxTries = 3
MaxTries is the maximum amount of tries to attempt to one service.
Variables ¶
View Source
var APIURIs = []string{
"https://api.ipify.org",
"http://myexternalip.com/raw",
"http://ipinfo.io/ip",
"http://ipecho.net/plain",
"http://icanhazip.com",
"http://ifconfig.me/ip",
"http://ident.me",
"http://checkip.amazonaws.com",
"http://bot.whatismyipaddress.com",
"http://whatismyip.akamai.com",
"http://wgetip.com",
"http://ip.tyk.nu",
}
APIURIs is list of services used to get IP address
View Source
var Timeout = 1 * time.Second
Timeout after which result will be collected
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.