Documentation ¶ Index ¶ func Discover(ctx context.Context, route *Path, addr net.IP, s Socket, maxTTL uint8, ...) error type Path func (p *Path) AddHop() func (p *Path) Len() int func (p *Path) SetHop(idx int, hop *ping.Target) type Socket 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) } Source Files ¶ View all Source files discover.go Click to show internal directories. Click to hide internal directories.