ip

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidIPReceived = errors.New("the received IP is invalid")
)
View Source
var HTTPClient = &http.Client{
	Timeout: 10 * time.Second,
}

HTTPClient is the client used to perform the http requests against the API

Functions

func GetV4 added in v1.0.0

func GetV4() (net.IP, error)

func GetV6 added in v1.0.0

func GetV6() (net.IP, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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