ping

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package ping provides ICMP network connectivity detection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ping

func Ping(address string, timeoutSecond int) result.Result[PingResult]

Ping pings the address and returns a result with alive status and timedelay.

func Pinger

func Pinger(address string, timeoutSecond int) (r result.VoidResult)

Pinger pings the address using ICMP.

Types

type PingResult added in v1.4.0

type PingResult struct {
	Alive     bool
	Timedelay time.Duration
}

PingResult holds the result of a ping operation.

Jump to

Keyboard shortcuts

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