trace

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UDP    = "udp4"
	ICMP   = "ip4:icmp"
	ICMPv4 = 1
)

Variables

View Source
var DefaultTracer = &Tracer{cfg: defaultConfig}

Functions

func IpToHost

func IpToHost(ip string) string

Types

type Hop

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

type IP

type IP struct {
	Ip net.IP
}

func HostToIp

func HostToIp(host string) ([]*IP, error)

type Probe

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

type Tracer

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

func NewTracer

func NewTracer(cfg *TracerConfig) *Tracer

func (*Tracer) Trace

func (t *Tracer) Trace(host string) error

type TracerConfig

type TracerConfig struct {
	Proto        string
	StartTTL     int
	MaxTTL       int
	Port         int
	NProbes      int
	CProbes      int
	CHopes       int
	ProbeTimeout int
}

Jump to

Keyboard shortcuts

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