pingparsing

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientResults

type ClientResults map[string]PingResult

ClientResults PingParsing Client Result map

type ICMPReply

type ICMPReply struct {
	Timestamp string  `json:"timestamp"`
	ICMPSeq   int64   `json:"icmp_seq"`
	TTL       int64   `json:"ttl"`
	Time      float64 `json:"time"`
	Duplicate bool    `json:"duplicate"`
}

ICMPReply ICMP reply entry

type PingResult

type PingResult struct {
	Destination          string      `json:"destination"`
	PacketTransmit       int64       `json:"packet_transmit"`
	PacketReceive        int64       `json:"packet_receive"`
	PacketLossRate       float64     `json:"packet_loss_rate"`
	PacketLossCount      int64       `json:"packet_loss_count"`
	RTTMin               float64     `json:"rtt_min"`
	RTTAvg               float64     `json:"rtt_avg"`
	RTTMax               float64     `json:"rtt_max"`
	RTTMDev              float64     `json:"rtt_mdev"`
	PacketDuplicateRate  float64     `json:"packet_duplicate_rate"`
	PacketDuplicateCount int64       `json:"packet_duplicate_count"`
	ICMPReplies          []ICMPReply `json:"icmp_replies"`
}

PingResult Ping target client results structure

Jump to

Keyboard shortcuts

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