processor

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Anchors    []string
	MinimumAge time.Duration

	Db *sql.DB
	Mg *migrate.Migrator
}

type Processor

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

func New

func New(c Config) (*Processor, error)

func (*Processor) Add

func (p *Processor) Add(scans ...autoscan.Scan) error

func (*Processor) CheckAvailability

func (p *Processor) CheckAvailability(targets []autoscan.Target) error

CheckAvailability checks whether all targets are available. If one target is not available, the error will return.

func (*Processor) Process

func (p *Processor) Process(targets []autoscan.Target) error

func (*Processor) ScansProcessed added in v1.2.0

func (p *Processor) ScansProcessed() int64

ScansProcessed returns the amount of scans processed

func (*Processor) ScansRemaining added in v1.2.0

func (p *Processor) ScansRemaining() (int, error)

ScansRemaining returns the amount of scans remaining

Jump to

Keyboard shortcuts

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