extip

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package extip provides the interface ExternalIPAddressGetter for getting the external IP address.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalIPAddressGetter

type ExternalIPAddressGetter interface {
	GetExternalIPAddress(context.Context) (net.IP, error)
}

ExternalIPAddressGetter gets the external IP address.

Directories

Path Synopsis
package extipraw provides an implementation of extip.ExternalIPAddressGetter that gets the external IP address from an environmental variable value.
package extipraw provides an implementation of extip.ExternalIPAddressGetter that gets the external IP address from an environmental variable value.
package extipupnp provides an implementation of extip.ExternalIPAddressGetter that gets the external IP address from UPnP.
package extipupnp provides an implementation of extip.ExternalIPAddressGetter that gets the external IP address from UPnP.

Jump to

Keyboard shortcuts

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