mockwrap

package
v1.0.0-b2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 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 Net

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

func NewNet

func NewNet(t *testing.T) *Net

func (*Net) AddInterfaceByName

func (m *Net) AddInterfaceByName(f NetInterfaceByNameFunc)

func (*Net) AddInterfaces

func (m *Net) AddInterfaces(f NetInterfacesFunc)

func (*Net) HasMore

func (m *Net) HasMore() bool

func (*Net) InterfaceByName

func (m *Net) InterfaceByName(name string) (*net.Interface, error)

func (*Net) Interfaces

func (m *Net) Interfaces() ([]net.Interface, error)

func (*Net) SetInterfaceByName

func (m *Net) SetInterfaceByName(f NetInterfaceByNameFunc)

func (*Net) SetInterfaces

func (m *Net) SetInterfaces(f NetInterfacesFunc)

type NetInterfaceByNameFunc

type NetInterfaceByNameFunc func(name string) (*net.Interface, error)

type NetInterfacesFunc

type NetInterfacesFunc func() ([]net.Interface, error)

Jump to

Keyboard shortcuts

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