modulepackage
1.2.2
Repository: https://github.com/syncbak-git/traceroute.git
Documentation: pkg.go.dev
# README
Traceroute in Go
A traceroute library written in Go.
Must be run as sudo on OS X (and others)?
CLI App
go build cmd/gotraceroute
sudo ./gotraceroute example.com
Library
See the code in cmd/gotraceroute.go for an example of how to use the library from within your application.
The traceroute.Traceroute() function accepts a domain name and an options struct and returns a TracerouteResult struct that holds an array of TracerouteHop structs.
Resources
Useful resources:
- http://en.wikipedia.org/wiki/Traceroute
- http://tools.ietf.org/html/rfc792
- http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
Notes
# Functions
NewContinuous returns a new Continuous for monitoring the supplied destinations using the default options.
# Variables
ErrMissingHost occurs when we try to process a response for a destination that's not in the list of destinations.
# Structs
No description provided by the author
Continuous does a continous traceroute for a set of destinations.
Hop is a step in the network route between a source and destination address.
No description provided by the author