Initial commit
This commit is contained in:
commit
d4a59fb9e8
18 changed files with 1439 additions and 0 deletions
15
plugin/plugin.go
Normal file
15
plugin/plugin.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Command plugin is the happyDomain plugin entrypoint for the legacy
|
||||
// records checker. It is built as a Go plugin and loaded at runtime.
|
||||
package main
|
||||
|
||||
import (
|
||||
legacy "git.happydns.org/checker-legacy-records/checker"
|
||||
sdk "git.happydns.org/checker-sdk-go/checker"
|
||||
)
|
||||
|
||||
var Version = "custom-build"
|
||||
|
||||
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
|
||||
legacy.Version = Version
|
||||
return legacy.Definition(), legacy.Provider(), nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue