17 lines
524 B
Go
17 lines
524 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
|
|
return autoconfig.Definition(), autoconfig.Provider(), nil
|
|
}
|