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: 0

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