neighbors

package
v1.0.0-a2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARP

type ARP interface {
	Present(ctx context.Context, ifs Interfaces, state State, addrStates HardwareAddrStates) error
	Count(count uint)
}

func NewARP

func NewARP(count uint) (ARP, error)

type ARPing

type ARPing interface {
	Ping(ctx context.Context, ifi, hw, ip string) (bool, error)
	Count(count uint)
}

func NewARPing

func NewARPing(count uint) (ARPing, error)

type HardwareAddrStates

type HardwareAddrStates map[string]State

type Interfaces

type Interfaces map[string]bool

type State

type State interface {
	Present() bool
	Changed() bool
	Set(present bool)
	Reset()
}

func NewState

func NewState() State

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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