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. Update main.go to import
server and call server.New, 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 13:14:17 +07:00
commit 79782a49c4
6 changed files with 16 additions and 11 deletions

View file

@ -1,3 +1,5 @@
//go:build standalone
package checker
import (
@ -24,7 +26,7 @@ func starttlsChoices() []string {
return protos
}
// RenderForm satisfies sdk.CheckerInteractive. The fields mirror the inputs
// RenderForm satisfies server.Interactive. The fields mirror the inputs
// a producer checker would put into a contract.TLSEndpoint; a human fills
// them in directly when running the checker standalone.
func (p *tlsProvider) RenderForm() []sdk.CheckerOptionField {
@ -75,7 +77,7 @@ func (p *tlsProvider) RenderForm() []sdk.CheckerOptionField {
}
}
// ParseForm satisfies sdk.CheckerInteractive. It turns the human inputs into
// ParseForm satisfies server.Interactive. It turns the human inputs into
// a single contract.TLSEndpoint, wraps it in a DiscoveryEntry, and returns
// CheckerOptions shaped as if a happyDomain host had auto-filled
// OptionEndpoints via AutoFillDiscoveryEntries.