network

package
v0.0.0-...-95f1a29 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 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 IcmpReply

type IcmpReply struct {
	Duration time.Duration
	Seq      int
}

type PingReport

type PingReport struct {
	MaxLatency time.Duration
	MinLatency time.Duration
	AvgLatency time.Duration
	LostNum    int
	LostPer    int
	Packages   []IcmpReply
	HostIp     string
}

func Ping

func Ping(host string, count int) (PingReport, error)

Jump to

Keyboard shortcuts

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