transponder

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 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 Receiver

type Receiver = func(context.Context, *Transponder, *net.UDPAddr, *types.Probe)

type Transponder

type Transponder struct {
	Receive Receiver
	// contains filtered or unexported fields
}

func New

func New(name, ifsName string, ifsAddr types.Address) (*Transponder, error)

func (*Transponder) InterfaceName

func (tp *Transponder) InterfaceName() string

func (*Transponder) Run

func (tp *Transponder) Run(ctx context.Context, failureSink chan<- error)

func (*Transponder) SendProbe

func (tp *Transponder) SendProbe(probe *types.Probe, to *net.UDPAddr, finalise func(error))

func (*Transponder) Stop

func (tp *Transponder) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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