traceroute

package module
v0.0.0-...-b06d1f2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 7 Imported by: 0

README

traceroute

Golang traceroute library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	MaxTTL   int
	WaitTime time.Duration
}

type Result

type Result struct {
	Hop     int
	Src     net.IP
	Dst     net.IP
	Rtt     time.Duration
	Success bool
}

func Traceroute

func Traceroute(ctx context.Context, dst net.IPAddr, opts Options) ([]Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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