runner

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Threads        int
	Proxy          string
	Retries        int
	Timeout        int
	OutFile        string
	ManualProvider string
	ManualCategory string
	Resume         bool
	MinKeyLength   int
	OnlyValid      bool
	MinBalance     float64
	DeepScan       bool
	NoCache        bool
	SkipMetadata   bool
	CanaryCheck    bool
	Password       string
	Bench          bool
	Quiet          bool
	Format         string
	Factory        *validators.ValidatorFactory
	Detector       *validators.Detector
	ProxyRotator   *client.ProxyRotator

	Sinks []sink.Sink
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(threads int, proxy string, retries int, timeout int, out string, manualProv string, manualCat string, resume bool, onlyValid bool, minBalance float64, skipMetadata bool, canaryCheck bool) (*Runner, error)

func NewRunnerWithOptions added in v1.2.0

func NewRunnerWithOptions(threads int, proxy string, retries int, timeout int, out string, manualProv string, manualCat string, resume bool, onlyValid bool, minBalance float64, skipMetadata bool, canaryCheck bool, factoryOpts validators.FactoryOptions) (*Runner, error)

NewRunnerWithOptions is the configurable constructor. factoryOpts controls the positive-cache layer (persistent on/off) and whether caching is disabled entirely (--no-cache).

func (*Runner) GetKeyStream added in v1.0.8

func (r *Runner) GetKeyStream(singleKey, keyFile string) (io.ReadCloser, int, error)

func (*Runner) PreflightProxyCheck added in v1.0.8

func (r *Runner) PreflightProxyCheck()

func (*Runner) Run

func (r *Runner) Run(keyReader io.Reader, totalKeys int)

func (*Runner) RunSource added in v1.2.0

func (r *Runner) RunSource(ctx context.Context, src source.Source)

RunSource pulls keys from a Source plugin and feeds them into the validation pipeline as if they came from a single reader. The Source's Total() is used when non-zero so the progress bar reflects the real key count; otherwise a streaming run is launched (totalKeys=0).

Jump to

Keyboard shortcuts

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