Documentation
¶
Index ¶
- func NetCheck(address string, timeout time.Duration) (time.Duration, error)
- func NetEcho(addr string, timeout time.Duration) error
- func NetScan(host string, start, end int, timeout time.Duration) ([]int, error)
- func NetWait(address string, timeout time.Duration) error
- func Run(opts ...Option) error
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Mode string
Timeout time.Duration
StartPort int
EndPort int
Addr string
Host string
Stdout io.Writer
Stderr io.Writer
}
Config holds configuration for the net command.
type Option ¶
type Option func(*Config)
Option configures a Config.
func WithEndPort ¶
func WithStartPort ¶
func WithStderr ¶
func WithStdout ¶
func WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.