Versions in this module Expand all Collapse all v0 v0.1.0 Jul 17, 2026 Changes in this version + func BindHost(allowlist []string) string + func DecodeJSON(w http.ResponseWriter, r *http.Request, req any) bool + func NormalizeCIDR(s string) (string, error) + func OutboundIP() string + func WriteErr(w http.ResponseWriter, status int, code, msg string) + func WriteJSON(w http.ResponseWriter, code int, v any) + type Config struct + Allowlist []string + AppName string + CertDir string + Key string + Port int + TLS bool + type InfoFunc func() any + type Server struct + func New(info InfoFunc, ui UIController) *Server + func (s *Server) Addr() string + func (s *Server) CertPEM() []byte + func (s *Server) Fingerprint() string + func (s *Server) HandleExtra(path string, h http.HandlerFunc) + func (s *Server) Running() bool + func (s *Server) Start(cfg Config) error + func (s *Server) Stop() error + type UIController interface + DblClick func(testid string) (any, error) + Input func(testid, value string) (any, error) + Key func(key string) (any, error) + Press func(testid string) (any, error) + State func() (any, error)