traceroute

package
v0.0.0-...-4ae1572 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host          string
	FirstHop      int
	MaxHops       int
	TimeLimit     int64
	Port          int
	NumberQueries int
	Protocol      string
	PacketSize    int
	OnlyIP        bool
}

Config is a configuration struct for traceroute.

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

Tracer is a main struct for traceroute client.

func NewTracer

func NewTracer(config *Config) *Tracer

NewTracer returns a new instance of Tracer.

func (*Tracer) Run

func (t *Tracer) Run()

Run main function to run traceroute.

Jump to

Keyboard shortcuts

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