ip

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPublicIP added in v0.1.6

func GetPublicIP() (string, error)

GetPublicIP tries to detect the public IP address of this machine. First using DNS, then using several public HTTP APIs.

func GetPublicIPWithRetry added in v0.1.6

func GetPublicIPWithRetry(numRetries int, delay time.Duration) (string, error)

GetPublicIPWithRetry calls GetPublicIP and with numRetries attempts waiting delayInSeconds after each attempt.

Types

This section is empty.

Jump to

Keyboard shortcuts

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