trace

package
v0.0.0-...-07a5fb3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	// Results
	Result *traceroute.TracerouteResult
	IpAddr *net.IPAddr

	// Config
	Host string // hostname or IP address
	// contains filtered or unexported fields
}

Provides a traceroute to a given host.

func NewTrace

func NewTrace(ipAddr *net.IPAddr, options *traceroute.TracerouteOptions) *Trace

func NewTraceFromHost

func NewTraceFromHost(host string, options *traceroute.TracerouteOptions) (*Trace, error)

func (*Trace) Run

func (t *Trace) Run() error

func (*Trace) String

func (t *Trace) String() string

Returns a traceroute as string with 1 hop per line.

Jump to

Keyboard shortcuts

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