Discover Packages
github.com/vanclief/network-probe
mtr
package
Version:
v0.0.0-...-3e507f3
Opens a new window with list of versions in this module.
Published: Jan 2, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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 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 struct {
Report Report `json:"report"`
}
type Report struct {
MTR MTR `json:"mtr"`
Hubs []HUB `json:"hubs"`
Timestamp int64 `json:"timestamp"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.