Initial commit

This commit is contained in:
nemunaire 2026-04-23 11:25:26 +07:00
commit 485c5a4a1d
33 changed files with 5407 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 SMTP 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"
smtp "git.happydns.org/checker-smtp/checker"
)
var Version = "custom-build"
// NewCheckerPlugin is the symbol resolved by happyDomain when loading the
// .so file.
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
smtp.Version = Version
prvd := smtp.Provider()
return prvd.(sdk.CheckerDefinitionProvider).Definition(), prvd, nil
}