Initial commit

This commit is contained in:
nemunaire 2026-04-21 22:42:34 +07:00
commit 96854b566a
23 changed files with 2402 additions and 0 deletions

20
plugin/plugin.go Normal file
View file

@ -0,0 +1,20 @@
// Command plugin is the happyDomain plugin entrypoint for the SIP checker.
//
// It is built as a Go plugin (`go build -buildmode=plugin`) and loaded at
// runtime by happyDomain.
package main
import (
sdk "git.happydns.org/checker-sdk-go/checker"
sip "git.happydns.org/checker-sip/checker"
)
var Version = "custom-build"
// NewCheckerPlugin is the symbol resolved by happyDomain when loading the
// .so file.
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
sip.Version = Version
prvd := sip.Provider()
return prvd.(sdk.CheckerDefinitionProvider).Definition(), prvd, nil
}