Initial commit

This commit is contained in:
nemunaire 2026-04-23 18:30:01 +07:00
commit 1ade94ce28
16 changed files with 118 additions and 170 deletions

View file

@ -4,18 +4,18 @@
package main
import (
openpgpkey "git.happydns.org/checker-openpgpkey/checker"
emailkeys "git.happydns.org/checker-email-keys/checker"
sdk "git.happydns.org/checker-sdk-go/checker"
)
// Version is the plugin's version, meant to be overridden by CI:
//
// go build -buildmode=plugin -ldflags "-X main.Version=1.2.3" -o checker-openpgpkey.so ./plugin
// go build -buildmode=plugin -ldflags "-X main.Version=1.2.3" -o checker-email-keys.so ./plugin
var Version = "custom-build"
// NewCheckerPlugin is the symbol resolved by happyDomain when loading
// the .so file.
func NewCheckerPlugin() (*sdk.CheckerDefinition, sdk.ObservationProvider, error) {
openpgpkey.Version = Version
return openpgpkey.Definition(), openpgpkey.Provider(), nil
emailkeys.Version = Version
return emailkeys.Definition(), emailkeys.Provider(), nil
}