factory

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

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