ping

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

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

Ping result.

func (*Result) Dup

func (r *Result) Dup() int

On reply: signals that the reply is a duplicate (optional).

func (*Result) Error

func (r *Result) Error() string

On error: description of error.

func (*Result) Rtt

func (r *Result) Rtt() float64

On reply: round-trip-time in milliseconds.

func (*Result) SrcAddr

func (r *Result) SrcAddr() string

On reply: source address if different from the source address in first reply (optional).

func (*Result) Ttl

func (r *Result) Ttl() int

On reply: time-to-live reply if different from ttl in first reply (optional).

func (*Result) UnmarshalJSON

func (r *Result) UnmarshalJSON(b []byte) error

func (*Result) X

func (r *Result) X() string

On timeout: "*".

Jump to

Keyboard shortcuts

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