checker: define Resolution verdict constants to make the collect/evaluate contract explicit
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
355f2b92eb
commit
62e85a155e
3 changed files with 23 additions and 12 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue