generic

package
v3.2.12 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 7 Imported by: ? modules, 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

This section is empty.

Types

type Generic

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

generic engine as name suggests is a generic template execution engine and executes all requests one after another without any logic in between

func NewGenericEngine

func NewGenericEngine(requests []protocols.Request, options *protocols.ExecutorOptions, results *atomic.Bool) *Generic

NewGenericEngine creates a new generic engine from a list of requests

func (*Generic) Compile

func (g *Generic) Compile() error

Compile engine specific compilation

func (*Generic) ExecuteWithResults

func (g *Generic) ExecuteWithResults(ctx *scan.ScanContext) error

ExecuteWithResults executes the template and returns results

func (*Generic) Name

func (g *Generic) Name() string

Type returns the type of engine

Jump to

Keyboard shortcuts

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