driver

package
v0.0.0-...-00fa4f3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chromedp

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

Chromedp is a driver that probes web targets using chromedp Implementation ref: https://github.com/chromedp/examples/blob/master/multi/main.go

func NewChromedp

func NewChromedp(logger *slog.Logger, opts runner.Options) (*Chromedp, error)

NewChromedp returns a new Chromedp instance

func (*Chromedp) Close

func (run *Chromedp) Close()

func (*Chromedp) Witness

func (run *Chromedp) Witness(target string, thisRunner *runner.Runner) (*models.Result, error)

witness does the work of probing a url. This is where everything comes together as far as the runner is concerned.

type Gorod

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

Gorod is a driver that probes web targets using go-rod

func NewGorod

func NewGorod(logger *slog.Logger, opts runner.Options) (*Gorod, error)

New gets a new Runner ready for probing. It's up to the caller to call Close() on the instance.

func (*Gorod) Close

func (run *Gorod) Close()

Close cleans up the Browser runner. The caller needs to close the Targets channel

func (*Gorod) Witness

func (run *Gorod) Witness(target string, runner *runner.Runner) (*models.Result, error)

witness does the work of probing a url. This is where everything comes together as far as the runner is concerned.

Jump to

Keyboard shortcuts

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