ip_util

package
v0.0.0-...-5a221c6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalIP

func ExternalIP() (string, error)

ExternalIP returns the current :exernal IP address and an error

func SelectHost

func SelectHost(ipMap map[int]string) (string, error)

SelectHost accepts an IP map, and provides a user prompt to select an IP address to serve on

Types

type Host

type Host struct {
	Name        string
	InternalIPs map[int]string
	ExternalIP  string
}

func HostInfo

func HostInfo() (Host, error)

Jump to

Keyboard shortcuts

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