api

package
v0.0.0-...-2decdf7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultOptionsFromFile

func CreateDefaultOptionsFromFile(cfgFile string) (*types.Options, error)

func ExpandASNInputValue

func ExpandASNInputValue(value string) []string

func MakeFlagSet

func MakeFlagSet(options *types.Options, cfgFile string) *goflags.FlagSet

func RunKatana

func RunKatana(options *types.Options) error

Types

type Runner

type Runner struct {
	CrawlerOptions *types.CrawlerOptions
	Stdin          bool
	Crawler        engine.Engine
	Options        *types.Options
	State          *RunnerState
	Networkpolicy  *networkpolicy.NetworkPolicy
}

Runner creates the required resources for crawling and executes the crawl process.

func (*Runner) Close

func (r *Runner) Close() error

Close closes the runner releasing resources

func (*Runner) ExecuteCrawling

func (r *Runner) ExecuteCrawling() error

ExecuteCrawling executes the crawling main loop

func (*Runner) SaveState

func (r *Runner) SaveState(resumeFilename string) error

type RunnerState

type RunnerState struct {
	InFlightUrls *mapsutil.SyncLockMap[string, struct{}]
}

Jump to

Keyboard shortcuts

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