result

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination added in v0.1.32

type Destination struct {
	Hostname string `json:"hostname"`
	Port     int    `json:"port"`
}

Destination contains destination param info

type E2eProbe

type E2eProbe struct {
	RTTs                 []float64   `json:"rtts"`
	PacketsSent          int         `json:"packets_sent"`
	PacketsReceived      int         `json:"packets_received"`
	PacketLossPercentage float32     `json:"packet_loss_percentage"`
	Jitter               float64     `json:"jitter"`
	RTT                  E2eProbeRTT `json:"rtt"`
}

E2eProbe contains e2e probe results

type E2eProbeRTT

type E2eProbeRTT struct {
	Avg float64 `json:"avg"`
	Min float64 `json:"min"`
	Max float64 `json:"max"`
}

E2eProbeRTT contains e2e latency stats

type HopCountStats

type HopCountStats struct {
	Avg float64 `json:"avg"`
	Min int     `json:"min"`
	Max int     `json:"max"`
}

HopCountStats contains hop count stats

type Results

type Results struct {
	TestRunID   string      `json:"test_run_id"`
	Protocol    string      `json:"protocol"`
	Source      Source      `json:"source"`
	Destination Destination `json:"destination"`
	Traceroute  Traceroute  `json:"traceroute"`
	E2eProbe    E2eProbe    `json:"e2e_probe"`
}

Results all the results from a single test run

func (*Results) EnrichWithReverseDns

func (r *Results) EnrichWithReverseDns()

EnrichWithReverseDns enrich results with reverse dns

func (*Results) Normalize

func (r *Results) Normalize()

Normalize results

func (*Results) RemovePrivateHops added in v0.1.27

func (r *Results) RemovePrivateHops()

RemovePrivateHops results

type Source added in v0.1.32

type Source struct {
	PublicIP string `json:"public_ip"`
}

Source contains source info

type Traceroute

type Traceroute struct {
	Runs     []TracerouteRun `json:"runs"`
	HopCount HopCountStats   `json:"hop_count"`
}

Traceroute contains traceroute results

type TracerouteDestination

type TracerouteDestination struct {
	IPAddress  net.IP   `json:"ip_address"`
	Port       uint16   `json:"port"`
	ReverseDns []string `json:"reverse_dns,omitempty"`
}

TracerouteDestination contains result destination info

type TracerouteHop

type TracerouteHop struct {
	TTL        int      `json:"ttl"`
	IPAddress  net.IP   `json:"ip_address"`
	RTT        float64  `json:"rtt"`
	Reachable  bool     `json:"reachable"`
	ReverseDns []string `json:"reverse_dns,omitempty"`

	// Internal use
	IsDest bool `json:"-"`

	// DEPRECATED: In separate PR, remove fields below and its usage
	Port     uint16 `json:"-"`
	ICMPType uint8  `json:"-"`
	ICMPCode uint8  `json:"-"`
}

TracerouteHop encapsulates information about a single hop in a traceroute

type TracerouteRun

type TracerouteRun struct {
	RunID       string                `json:"run_id"`
	Source      TracerouteSource      `json:"source"`
	Destination TracerouteDestination `json:"destination"`
	Hops        []*TracerouteHop      `json:"hops"`
}

TracerouteRun contains traceroute results for a single run

func (*TracerouteRun) GetDestinationHop added in v0.1.22

func (tr *TracerouteRun) GetDestinationHop() *TracerouteHop

type TracerouteSource

type TracerouteSource struct {
	IPAddress net.IP `json:"ip_address"`
	Port      uint16 `json:"port"`
}

TracerouteSource contains result source info

Jump to

Keyboard shortcuts

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