goping

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoRequest

type EchoRequest struct {
	// contains filtered or unexported fields
}

type PingTask

type PingTask struct {
	// contains filtered or unexported fields
}

func NewPingTask

func NewPingTask(to string, timeout, interval time.Duration, tos, ttl, requests int, pktsz uint, usermap map[string]string) (*PingTask, error)

type Pong

type Pong struct {
	EchoStart time.Time
	EchoEnd   time.Time
	Err       error
	// contains filtered or unexported fields
}

func (Pong) Rtt

func (p Pong) Rtt() (*time.Duration, error)

func (Pong) String

func (this Pong) String() string

type Summary

type Summary struct {
	Pongs      []*Pong //The received responses
	PingTask   *PingTask
	Min        float64
	Max        float64
	Avg        float64
	Sent       float64
	Success    float64
	Failed     float64
	PacketLoss float64
	RttSum     float64
}

Jump to

Keyboard shortcuts

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