Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewScanners ¶
func NewScanners(cfg scannerconfig.Config) ([]types.Scanner, error)
NewScanners creates Scanner instances for all registered scanners.
func Register ¶
func Register(name string, factory ScannerFactory)
Register registers a ScannerFactory under the given name. It panics if the same name is registered twice to prevent duplications at compile-time. Scanner implementations should call this from their init() function.
Types ¶
type ScannerFactory ¶
type ScannerFactory func(cfg scannerconfig.Config) types.Scanner
ScannerFactory creates a Scanner from the shared scanner config.
Click to show internal directories.
Click to hide internal directories.