options

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Include         string // targets to be included (comma separated)
	Exclude         string // targets to be included (comma separated)
	Target          string // target host
	Infile          string // file containin targets (newline separated)
	Outfile         string // file to write results
	HideStatusCodes bool   // show status code
	HideWarning     bool   // hide warning
	Silence         bool   // suppress output from console
	Version         bool   // print version
	Help            bool   // print help
}

type Options

type Options struct {
	Include               []string // domains to be included
	Exclude               []string // domains to be included
	Concurrency           int      // number of concurrent requests
	Timeout               int      // Request timeout duration (in seconds)
	Delay                 int      // delay between each request (in ms)
	DelayJitter           int      // maximum jitter to add to delay (in ms)
	ResponseHeaderTimeout int      // Response header timeout duration (in seconds)
	UserAgent             string   // custom user-agent
	CLI                   CLI      // CLI options
}

func Default

func Default() *Options

Default returns the default options

func (*Options) SetDefaultsMissing

func (from *Options) SetDefaultsMissing()

func (*Options) ValidateOptions

func (o *Options) ValidateOptions()

Jump to

Keyboard shortcuts

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