Documentation
¶
Overview ¶
Package engine provides the Leakwatch scan engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Concurrency int
Detectors []detector.Detector
EnableEntropy bool
// EntropyThreshold is display-only at the engine level. When EnableEntropy
// is set, the engine computes Shannon entropy purely to populate
// Finding.Entropy for reporting (see rawToFinding); it does NOT gate or drop
// findings whose entropy falls below this value. Threshold-based gating
// currently applies only to custom rules (handled inside their detector);
// engine-wide entropy gating is planned and tracked separately in the docs/
// ROADMAP. The value is defaulted to defaultEntropyThreshold in New.
EntropyThreshold float64
ShowRaw bool
Clock func() time.Time // Optional; defaults to time.Now
VerifierConfig verifier.Config
Verifiers []verifier.Verifier
OnlyVerified bool // If true, only return verified active findings
MinSeverity finding.Severity // Minimum severity to include in results
}
Config holds the scan engine configuration.
Click to show internal directories.
Click to hide internal directories.