runner

package
v0.0.0-...-8b85951 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package runner is the functionality for actually performing traceroutes

Index

Constants

View Source
const (
	// DefaultSourcePort defines the default source port
	DefaultSourcePort = 12345
	// DefaultDestPort defines the default destination port
	DefaultDestPort = 33434
	// DefaultNumPaths defines the default number of paths
	DefaultNumPaths = 1
	// DefaultMinTTL defines the default minimum TTL
	DefaultMinTTL = 1
	// DefaultDelay defines the default delay
	DefaultDelay = 50 //msec

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

Runner executes traceroutes

func New

func New(telemetryComp telemetryComponent.Component) (*Runner, error)

New initializes a new traceroute runner

func (*Runner) RunTraceroute

func (r *Runner) RunTraceroute(ctx context.Context, cfg config.Config) (payload.NetworkPath, error)

RunTraceroute wraps the implementation of traceroute so it can be called from the different OS implementations

This code is experimental and will be replaced with a more complete implementation.

Jump to

Keyboard shortcuts

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