cli

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Timeout    time.Duration `help:"The timeout for each ping." short:"t" default:"5s"`
	Duration   time.Duration `help:"The duration of the test." short:"d" xor:"duration"`
	Count      int           `help:"The number of pings to send." short:"c" default:"10" xor:"duration"`
	Privileged bool          `help:"Use privileged ICMP sockets." default:"false" short:"p"`
	DataSize   int           `help:"The size of the data probe to send." short:"s" default:"1024"`

	Target string `arg:"" help:"The target host to ping."`
}

type DataSizes added in v1.1.0

type DataSizes []int

func (*DataSizes) Validate added in v1.1.0

func (ds *DataSizes) Validate() error

Jump to

Keyboard shortcuts

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