15 lines
470 B
Go
15 lines
470 B
Go
// Command plugin is the happyDomain plugin entrypoint for the dangling
|
|
// records checker. It is built as a Go plugin and loaded at runtime.
|
|
package main
|
|
|
|
import (
|
|
dangling "git.happydns.org/checker-dangling/checker"
|
|
sdk "git.happydns.org/checker-sdk-go/checker"
|
|
)
|
|
|
|
var Version = "custom-build"
|
|
|
|
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
|
|
dangling.SetVersion(Version)
|
|
return dangling.Definition(), dangling.Provider(), nil
|
|
}
|