runner

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHealthCheck added in v0.0.3

func DoHealthCheck(options *types.Options, flagSet *goflags.FlagSet) string

func GetUpdateCallback added in v1.0.0

func GetUpdateCallback() func()

GetUpdateCallback returns a callback function that updates katana

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

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

func New

func New(options *types.Options) (*Runner, error)

New returns a new crawl runner structure

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 added in v1.0.4

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

type RunnerState added in v1.0.4

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