netinterfaces

package
v10.259.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkInterface

type NetworkInterface struct {
	Name   string
	IPs    []net.IP
	IPNets []*net.IPNet
	Flags  net.Flags
}

NetworkInterface holds info of a network interface

func GetInterfacesInfo

func GetInterfacesInfo() ([]NetworkInterface, error)

GetInterfacesInfo returns interface info

Jump to

Keyboard shortcuts

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