checker-blacklist/checker
Pierre-Olivier Mercier c437339bda Separate observation from evaluation in blacklist sources
Each source's Query() method previously set r.Listed and r.Severity,
embedding verdict logic inside the prober. Evaluation now lives in a
dedicated Evaluate(SourceResult) (bool, string) method per source,
keeping Query() as pure observation.

A package-level EvaluateResult() helper looks up the source by ID and
delegates to its Evaluate method; rules.go, report.go, types.go, and
provider.go all call this instead of reading pre-set r.Listed/r.Severity
values. An unknownSource sentinel handles results whose source is no
longer registered.
2026-05-15 18:04:17 +08:00
..
collect.go Initial commit 2026-04-26 19:44:05 +07:00
definition.go Initial commit 2026-04-26 19:44:05 +07:00
dnsbl.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
dnsbl_test.go Initial commit 2026-04-26 19:44:05 +07:00
httpclient.go Initial commit 2026-04-26 19:44:05 +07:00
interactive.go Initial commit 2026-04-26 19:44:05 +07:00
openphish.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
provider.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
report.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
report_test.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
rule.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
safebrowsing.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
source.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
source_test.go Initial commit 2026-04-26 19:44:05 +07:00
testhelpers_test.go Initial commit 2026-04-26 19:44:05 +07:00
types.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
urlhaus.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
urlhaus_test.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
virustotal.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00
virustotal_test.go Separate observation from evaluation in blacklist sources 2026-05-15 18:04:17 +08:00