Versions in this module Expand all Collapse all v1 v1.4.15 Oct 19, 2026 v1.4.14 Oct 12, 2026 Changes in this version + func OpenAPI(reg *cmdregistry.Registry, dataSchema func(string) ([]byte, bool)) ([]byte, error) + func ValidateAllowedHosts(hosts []string) error + type AuthHook interface + Authenticate func(*http.Request) (Principal, error) + func BearerAuth(tok string) AuthHook + type Invoker func(context.Context, *cmdregistry.Registry, string, invoke.Request, invoke.Options) (invoke.Result, error) + type Options struct + AllowedHosts []string + Auth AuthHook + DataSchema func(string) ([]byte, bool) + IdleTimeout time.Duration + Invoker Invoker + Log io.Writer + MaxInFlight int + Port int + ProjectDir string + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + Registry *cmdregistry.Registry + Timeout time.Duration + type Principal struct + Subject string + type Server struct + func New(o Options) (*Server, error) + func (s *Server) Handler() http.Handler + func (s *Server) ListenAndServe(ctx context.Context, addr string) error + func (s *Server) Mount(prefix string, h http.Handler) (err error) + func (s *Server) Serve(ctx context.Context, ln net.Listener) error