discover

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(ctx context.Context, route *Path, addr net.IP, s Socket, maxTTL uint8, l *slog.Logger) error

Types

type Path

type Path struct {
	Hops []*ping.Target
	// contains filtered or unexported fields
}

func (*Path) AddHop

func (p *Path) AddHop()

func (*Path) Len

func (p *Path) Len() int

func (*Path) SetHop

func (p *Path) SetHop(idx int, hop *ping.Target)

type Socket

type Socket interface {
	Ping(net.IP, icmp.SequenceNumber, uint8, []byte) error
	Read(context.Context) (icmp.Response, error)
}

Jump to

Keyboard shortcuts

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