printer

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RED_PREFIX    = "\033[1;31m"
	GREEN_PREFIX  = "\033[1;32m"
	YELLOW_PREFIX = "\033[1;33m"
	BLUE_PREFIX   = "\033[1;34m"
	CYAN_PREFIX   = "\033[1;36m"
	RESET_PREFIX  = "\033[0m"
)

Variables

This section is empty.

Functions

func ClassicPrinter

func ClassicPrinter(res *trace.Result, ttl int)
func CopyRight()

func EasyPrinter

func EasyPrinter(res *trace.Result, ttl int)

func GetRouter

func GetRouter(r *map[string][]string, node string)

func HopPrinter

func HopPrinter(h trace.Hop, info HopInfo)

func New

func New() table.Table

func PrintTraceRouteNav

func PrintTraceRouteNav(ip net.IP, domain string, dataOrigin string, maxHops int, packetSize int)

func RealtimePrinter

func RealtimePrinter(res *trace.Result, ttl int)

func RealtimePrinterWithRouter

func RealtimePrinterWithRouter(res *trace.Result, ttl int)

func TracerouteTablePrinter

func TracerouteTablePrinter(res *trace.Result)

func Version

func Version()

Types

type HopInfo

type HopInfo int
const (
	General HopInfo = 0
	IXP     HopInfo = 1
	Peer    HopInfo = 2
	PoP     HopInfo = 3
	Aboard  HopInfo = 4
)

Jump to

Keyboard shortcuts

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