18 lines
625 B
Go
18 lines
625 B
Go
// Command plugin is the happyDomain plugin entrypoint for the
|
|
// resolver-propagation checker.
|
|
package main
|
|
|
|
import (
|
|
resolverpropagation "git.happydns.org/checker-resolver-propagation/checker"
|
|
sdk "git.happydns.org/checker-sdk-go/checker"
|
|
)
|
|
|
|
// Version is the plugin's version.
|
|
var Version = "custom-build"
|
|
|
|
// NewCheckerPlugin is the symbol resolved by happyDomain when loading the .so.
|
|
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
|
|
resolverpropagation.Version = Version
|
|
prvd := resolverpropagation.Provider()
|
|
return prvd.(sdk.CheckerDefinitionProvider).Definition(), prvd, nil
|
|
}
|