processor

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MIT Imports: 12 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
	DbType string
	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) GetVersion

func (p *Processor) GetVersion() (string, error)

version

func (*Processor) Process

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

func (*Processor) ScansProcessed

func (p *Processor) ScansProcessed() int64

ScansProcessed returns the amount of scans processed

func (*Processor) ScansRemaining

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