mockneighbors

package
v1.0.0-b3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 4 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 struct {
	// contains filtered or unexported fields
}

func NewARP

func NewARP(t assert.TestingT) *ARP

func (*ARP) AddCount

func (m *ARP) AddCount(f ARPCountFunc)

func (*ARP) AddPresent

func (m *ARP) AddPresent(f ARPPresentFunc)

func (*ARP) Count

func (m *ARP) Count(count uint)

func (*ARP) HasMore

func (m *ARP) HasMore() bool

func (*ARP) Present

func (m *ARP) Present(ctx context.Context, ifs neighbors.Interfaces, state neighbors.State, addrStates neighbors.HardwareAddrStates) error

func (*ARP) SetCount

func (m *ARP) SetCount(f ARPCountFunc)

func (*ARP) SetPresent

func (m *ARP) SetPresent(f ARPPresentFunc)

type ARPCountFunc

type ARPCountFunc func(count uint)

type ARPPresentFunc

type ARPPresentFunc func(ctx context.Context, ifs neighbors.Interfaces, state neighbors.State, addrStates neighbors.HardwareAddrStates) error

type ARPing

type ARPing struct {
	// contains filtered or unexported fields
}

func NewARPing

func NewARPing(t assert.TestingT) *ARPing

func (*ARPing) AddCount

func (m *ARPing) AddCount(f ARPingCountFunc)

func (*ARPing) AddPing

func (m *ARPing) AddPing(f ARPingPingFunc)

func (*ARPing) Count

func (m *ARPing) Count(count uint)

func (*ARPing) HasMore

func (m *ARPing) HasMore() bool

func (*ARPing) Ping

func (m *ARPing) Ping(ctx context.Context, ifi, hw, ip string) (bool, error)

func (*ARPing) SetCount

func (m *ARPing) SetCount(f ARPingCountFunc)

func (*ARPing) SetPing

func (m *ARPing) SetPing(f ARPingPingFunc)

type ARPingCountFunc

type ARPingCountFunc func(count uint)

type ARPingPingFunc

type ARPingPingFunc func(ctx context.Context, ifi, hw, ip string) (bool, error)

type State

type State struct {
	// contains filtered or unexported fields
}

func NewState

func NewState(t assert.TestingT) *State

func (*State) AddChanged

func (m *State) AddChanged(f StateChangedFunc)

func (*State) AddPresent

func (m *State) AddPresent(f StatePresentFunc)

func (*State) AddReset

func (m *State) AddReset(f StateResetFunc)

func (*State) AddSet

func (m *State) AddSet(f StateSetFunc)

func (*State) Changed

func (m *State) Changed() bool

func (*State) HasMore

func (m *State) HasMore() bool

func (*State) Present

func (m *State) Present() bool

func (*State) Reset

func (m *State) Reset()

func (*State) Set

func (m *State) Set(present bool)

func (*State) SetChanged

func (m *State) SetChanged(f StateChangedFunc)

func (*State) SetPresent

func (m *State) SetPresent(f StatePresentFunc)

func (*State) SetReset

func (m *State) SetReset(f StateResetFunc)

func (*State) SetSet

func (m *State) SetSet(f StateSetFunc)

type StateChangedFunc

type StateChangedFunc func() bool

type StatePresentFunc

type StatePresentFunc func() bool

type StateResetFunc

type StateResetFunc func()

type StateSetFunc

type StateSetFunc func(present bool)

Jump to

Keyboard shortcuts

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