trparse

package module
v0.0.0-...-b2cd9bf Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 6 Imported by: 0

README

trparser

trparser parses traceroute outputs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Route

type Route struct {
	Hop      int
	RTT      []time.Duration
	IP       netaddr.IP
	Hostname string
}

func ParseLine

func ParseLine(line string) (*Route, error)

ParseLine given a line from the traceroute output, parse the route info

func ParseOutput

func ParseOutput(output string) ([]*Route, error)

Jump to

Keyboard shortcuts

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