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