cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 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 {
	Target   Target        `arg:"" help:"The target host to ping."`
	MTU      int           `help:"The maximum transmission unit of your interface." short:"m" default:"1500"`
	Timeout  time.Duration `help:"The timeout for each ping." short:"t" default:"5s"`
	Duration time.Duration `help:"The duration of the test." short:"d" default:"30s"`
	BindAddr string        `help:"The address to bind the ICMP listener to." default:"0.0.0.0" short:"l"`
}

type Target

type Target net.UDPAddr

func (*Target) UnmarshalText

func (t *Target) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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