checker-email-autoconfig/plugin/plugin.go
Pierre-Olivier Mercier d73502b0e2 checker: report skipped rules as StatusUnknown
Skipped tests that are not problematic should be UNKNOWN rather
than INFO; the affected rules cannot evaluate without their input,
so they are non-evaluations, not findings.
2026-04-26 09:50:13 +07:00

18 lines
564 B
Go

// Command plugin is the happyDomain plugin entrypoint for the autoconfig checker.
//
// It is built as a Go plugin (`go build -buildmode=plugin`) and loaded at
// runtime by happyDomain.
package main
import (
autoconfig "git.happydns.org/checker-autoconfig/checker"
sdk "git.happydns.org/checker-sdk-go/checker"
)
var Version = "custom-build"
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
autoconfig.Version = Version
prvd := autoconfig.Provider()
return prvd.(sdk.CheckerDefinitionProvider).Definition(), prvd, nil
}