native

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoEnvironment

type GoEnvironment struct {
}

GoEnvironment is a partial implementation of Environment which provides the methods and types that the go runtime can answer

func (*GoEnvironment) InterfaceByName

func (e *GoEnvironment) InterfaceByName(name string) (*GoInterface, error)

InterfaceByName implements Environment

func (*GoEnvironment) Interfaces

func (e *GoEnvironment) Interfaces() ([]*GoInterface, error)

Interfaces implements Environment

type GoInterface

type GoInterface struct {
	net.Interface
}

GoInterface provides as much of Interface as the go runtime can

func (*GoInterface) Addrs

func (i *GoInterface) Addrs() ([]net.IPNet, error)

Addrs implements Interface, looks up the IP addresses for the interface

func (*GoInterface) IsUp

func (i *GoInterface) IsUp() bool

IsUp implements Interface, checks for FlagUp

func (*GoInterface) Name

func (i *GoInterface) Name() string

Name implements Interface, gets its name

Jump to

Keyboard shortcuts

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