mtr

package
v0.0.0-...-3e507f3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HUB

type HUB struct {
	Count             int     `json:"count"`
	Host              string  `json:"host"`
	LossPercent       float32 `json:"Loss%"`
	Sent              int     `json:"Snt"`
	Last              float32 `json:"Last"`
	Average           float32 `json:"Avg"`
	Best              float32 `json:"Best"`
	Worst             float32 `json:"Wrst"`
	StandardDeviation float32 `json:"StDev"`
}

type MTR

type MTR struct {
	Source        string `json:"src"`
	Destination   string `json:"dst"`
	TypeOfService int    `json:"tos"`
	NumberOfTests int    `json:"tests"`
	PatternSize   string `json:"psize"`
	BitPattern    string `json:"bitpattern"`
}

type OutputJSON

type OutputJSON struct {
	Report Report `json:"report"`
}

type Report

type Report struct {
	MTR       MTR   `json:"mtr"`
	Hubs      []HUB `json:"hubs"`
	Timestamp int64 `json:"timestamp"`
}

func (*Report) String

func (r *Report) String() string

Jump to

Keyboard shortcuts

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