Initial commit
This commit is contained in:
commit
2d98ed1b5d
33 changed files with 4644 additions and 0 deletions
18
plugin/plugin.go
Normal file
18
plugin/plugin.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue