runner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConcurrency = 25
	DefaultRateLimit   = 100
	DefaultTimeout     = 10
	DefaultRetries     = 1
)

Variables

View Source
var Version = "0.0.1"

Functions

func ShowBanner

func ShowBanner()

Types

type Options

type Options struct {
	Target     goflags.StringSlice
	TargetFile string

	Concurrency int
	RateLimit   int

	Debug bool

	Timeout int
	Retries int

	Proxy string
}

func NewOptions

func NewOptions() (*Options, error)

type Runner

type Runner struct {
	Opts           *Options
	TargetTempName string
}

func NewRunner

func NewRunner(opts *Options) (*Runner, error)

func (*Runner) GetTargets

func (runner *Runner) GetTargets() (chan string, error)

func (*Runner) InitTargetTempFile

func (runner *Runner) InitTargetTempFile() error

Jump to

Keyboard shortcuts

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