Migrate to checker-sdk-go v1.3.0 with standalone build tag

The SDK split the HTTP server scaffolding into the new
checker-sdk-go/checker/server subpackage and renamed
CheckerInteractive to server.Interactive. Update main.go to import
server and call server.New, switch the compile-time assertion to
server.Interactive, and isolate the interactive form code behind the
standalone build tag so plugin/builtin builds skip net/http entirely.
This commit is contained in:
nemunaire 2026-04-24 12:54:01 +07:00
commit eb7b6d1a90
7 changed files with 23 additions and 16 deletions

View file

@ -5,7 +5,7 @@ import (
"log"
emailkeys "git.happydns.org/checker-email-keys/checker"
sdk "git.happydns.org/checker-sdk-go/checker"
"git.happydns.org/checker-sdk-go/checker/server"
)
// Version is the standalone binary's version. Override with:
@ -20,8 +20,8 @@ func main() {
emailkeys.Version = Version
server := sdk.NewServer(emailkeys.Provider())
if err := server.ListenAndServe(*listenAddr); err != nil {
srv := server.New(emailkeys.Provider())
if err := srv.ListenAndServe(*listenAddr); err != nil {
log.Fatalf("server error: %v", err)
}
}