xping

package
v0.0.0-...-89edfd8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Latency

type Latency struct {
	Min, Avg, Max float64
}

type LinuxFallbackPinger

type LinuxFallbackPinger struct {
}

func NewLinuxFallbackPinger

func NewLinuxFallbackPinger() *LinuxFallbackPinger

func (*LinuxFallbackPinger) Ping

func (p *LinuxFallbackPinger) Ping(hostname string, times int, delay int) Result

type LinuxPinger

type LinuxPinger struct{}

func (*LinuxPinger) Ping

func (p *LinuxPinger) Ping(hostname string, times int, delay int) Result

type MacFallbackPinger

type MacFallbackPinger struct {
}

func NewMacFallbackPinger

func NewMacFallbackPinger() *MacFallbackPinger

func (*MacFallbackPinger) Ping

func (p *MacFallbackPinger) Ping(hostname string, times int, delay int) Result

type MacPinger

type MacPinger struct{}

func (*MacPinger) Ping

func (p *MacPinger) Ping(hostname string, times int, delay int) Result

type Pinger

type Pinger interface {
	Ping(host string, times int, delay int) Result
}

func New

func New() Pinger

type Result

type Result struct {
	Online     bool
	PacketLoss int64
	Latency    Latency
}

Directories

Path Synopsis
taken from http://golang.org/src/pkg/net/ipraw_test.go
taken from http://golang.org/src/pkg/net/ipraw_test.go

Jump to

Keyboard shortcuts

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