Expose one rule per source with rule-scoped options
Each registered Source now becomes its own CheckRule (name = source ID) implementing CheckRuleWithOptions, so the host can toggle blacklists individually and the per-source option fields show up under the rule that owns them instead of one flat global option list. Collect honours the host's per-rule enable map (via the SDK's RuleEnabled context helper) and skips the network call for disabled sources entirely, not just their evaluation.
This commit is contained in:
parent
6719e21b51
commit
ce59a976d5
5 changed files with 49 additions and 51 deletions
2
go.mod
2
go.mod
|
|
@ -3,6 +3,6 @@ module git.happydns.org/checker-blacklist
|
|||
go 1.25.0
|
||||
|
||||
require (
|
||||
git.happydns.org/checker-sdk-go v1.5.0
|
||||
git.happydns.org/checker-sdk-go v1.8.0
|
||||
golang.org/x/net v0.34.0
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue