checker-dummy/plugin/plugin.go

17 lines
660 B
Go

// Command plugin is the happyDomain plugin entrypoint for the dummy checker.
//
// It is built as a Go plugin (`go build -buildmode=plugin`) and loaded at
// runtime by happyDomain.
package main
import (
dummy "git.happydns.org/happyDomain/checker-dummy/checker"
"git.happydns.org/happyDomain/model"
)
// NewCheckerPlugin is the symbol resolved by happyDomain when loading the
// .so file. It returns the checker definition and the observation provider
// that the host will register in its global registries.
func NewCheckerPlugin() (*happydns.CheckerDefinition, happydns.ObservationProvider, error) {
return dummy.Definition(), dummy.Provider(), nil
}