ping

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingParser

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

func NewPingParser

func NewPingParser() *PingParser

func (*PingParser) Add

func (pp *PingParser) Add(line string)

func (*PingParser) Close

func (pp *PingParser) Close()

func (*PingParser) Read

func (pp *PingParser) Read() cmdparser.ParserOutput

type PingResponse

type PingResponse struct {
	Ping string
	// contains filtered or unexported fields
}

func (*PingResponse) Bytes

func (pr *PingResponse) Bytes() []byte

func (*PingResponse) Error

func (pr *PingResponse) Error() error

func (*PingResponse) JSON

func (pr *PingResponse) JSON() []byte

func (*PingResponse) String

func (pr *PingResponse) String() string

type PingSummary

type PingSummary struct {
	IP              net.IP
	Sent            int
	Received        int
	Errors          int
	Loss            float64
	RoundTripMin    float64
	RoundTripAvg    float64
	RoundTripMax    float64
	RoundTripStdDev float64
	// contains filtered or unexported fields
}

func (*PingSummary) Bytes

func (ps *PingSummary) Bytes() []byte

func (*PingSummary) Error

func (ps *PingSummary) Error() error

func (*PingSummary) JSON

func (ps *PingSummary) JSON() []byte

func (*PingSummary) String

func (ps *PingSummary) String() string

Jump to

Keyboard shortcuts

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