checker: define Resolution verdict constants to make the collect/evaluate contract explicit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2026-05-16 13:10:01 +08:00
commit 62e85a155e
3 changed files with 23 additions and 12 deletions

View file

@ -8,6 +8,17 @@ import (
const ObservationKeyDangling = "dangling_records"
// Resolution verdict constants — the shared contract between Collect and Evaluate.
const (
ResolutionOK = "ok"
ResolutionNXDomain = "nxdomain"
ResolutionServFail = "servfail"
ResolutionNoAnswer = "no_answer"
ResolutionTimeout = "timeout"
ResolutionError = "error"
ResolutionSkipped = "skipped"
)
// DanglingData is the raw observation payload; one Pointer per (owner, rrtype, target) triple.
type DanglingData struct {
Zone string `json:"zone,omitempty"`