network

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArp

func GetArp() *arp

func NewNetworkInterfaceFromName

func NewNetworkInterfaceFromName(name string) (networkInterface, error)

Types

type ARP

type ARP interface {
	GratuitousArp(GratuitousArpRequest) error
}

type GratuitousArpRequest

type GratuitousArpRequest struct {
	IP        net.IP
	Interface *net.Interface
}

type NetworkInterface

type NetworkInterface interface {
	EnsureIP(string) error
	RemoveIP(string) error
}

Directories

Path Synopsis
Package networkmock is a generated GoMock package.
Package networkmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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