ping

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package ping : pingの実行

Index

Constants

View Source
const (
	PingStart = iota
	PingOK
	PingTimeout
	PingOtherError
	PingTimeExceeded
)

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, wg *sync.WaitGroup, mode string) error

Types

type PingEnt

type PingEnt struct {
	Target  string
	Router  string
	Timeout int
	Retry   int
	Size    int
	SendTTL int
	RecvTTL int

	Tracker int64
	Stat    PingStat
	Time    int64

	Error   error
	RecvSrc string
	// contains filtered or unexported fields
}

func DoPing

func DoPing(ip string, timeout, retry, size, ttl int) *PingEnt

DoPing : pingの実行

type PingStat

type PingStat int

Jump to

Keyboard shortcuts

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