spike

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package spike provides the main Spike application structure and functionality. It attaches the scanner and reporter components to run the scanning process.

Index

Constants

This section is empty.

Variables

View Source
var ErrClosingScanner = errors.New("error while closing scanner")
View Source
var ErrFailedScanner = errors.New("error while running scanner")

Functions

func NewREPLShell

func NewREPLShell(dbPath string) error

Types

type Option

type Option func(s *Scanner)

func OptionWithConfig

func OptionWithConfig(cfg *config.Config) Option

OptionWithConfig sets the config.

func OptionWithDBPath

func OptionWithDBPath(dbPath string) Option

OptionWithDBPath sets the database path.

func OptionWithInputDomains

func OptionWithInputDomains(inputDomains []string) Option

OptionWithInputDomains sets the input domains.

func OptionWithScanMode

func OptionWithScanMode(mode ScanMode) Option

OptionWithScanMode sets the scan mode.

type ScanMode added in v0.6.4

type ScanMode int
const (
	DomainScanMode ScanMode = iota // scan input domains
	DbScanMode                     // select unscanned domains from the database and scans them
)

type Scanner

type Scanner struct {
	InputDomains []string       // domains to scan
	DBPath       string         // path to the sqlite database
	Config       *config.Config // configuration for the scan
	ScanMode     ScanMode       // DomainScanMode or DbScanMode
}

func NewScanner

func NewScanner(opts ...Option) (*Scanner, error)

func (*Scanner) Run

func (s *Scanner) Run() error

Jump to

Keyboard shortcuts

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