ip

package
v0.0.0-...-f673fef Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicIP

func PublicIP() string

PublicIP return the public ip as returned by an external service

Types

type Record

type Record struct {
	IPv4      string
	IPv6      string
	IfaceName string
	Mac       string
	MTU       int
}

Record is a struct that holds ip address along with the interface name

func PrivateIPs

func PrivateIPs() []Record

PrivateIPs returns the list of IP addresses from local network interfaces

Jump to

Keyboard shortcuts

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