api

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrailingSlashMiddleware

func TrailingSlashMiddleware(next http.Handler) http.Handler

TrailingSlashMiddleware redirects requests with trailing slashes to their canonical form Only applies to API routes, not UI routes

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	cfg *config.Config,
	metrics *telemetry.Metrics,
	versionInfo *arv0.VersionBody,
	customUIHandler http.Handler,
	authnProvider auth.AuthnProvider,
	routeOpts *router.RouteOptions,
	schemaNamer func(reflect.Type, string) string,
) (*Server, error)

AuthZ is handled at the DB/service layer, not at the API layer. Returns an error when route registration rejects the supplied RouteOptions (e.g. Stores missing).

func (*Server) Handler added in v0.4.0

func (s *Server) Handler() http.Handler

Handler returns the full HTTP handler stack (trailing-slash + CORS around the mux). Useful for tests that need to exercise middleware.

func (*Server) HumaAPI

func (s *Server) HumaAPI() huma.API

func (*Server) Mux

func (s *Server) Mux() *http.ServeMux

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis
handlers
mcpregistry
Package mcpregistry wires the read-only MCP Registry v0.1 compatibility endpoints.
Package mcpregistry wires the read-only MCP Registry v0.1 compatibility endpoints.
v0/crud
Package v1alpha1crud wires the generic CRUD HTTP handlers for every first-party v1alpha1 Kind shipped by this repo (Agent, MCPServer, Skill, Prompt, Runtime, Model, Deployment).
Package v1alpha1crud wires the generic CRUD HTTP handlers for every first-party v1alpha1 Kind shipped by this repo (Agent, MCPServer, Skill, Prompt, Runtime, Model, Deployment).
v0/deploymentlogs
Package deploymentlogs owns the Deployment logs subresource: `/v0/deployments/{name}/logs`.
Package deploymentlogs owns the Deployment logs subresource: `/v0/deployments/{name}/logs`.
Package router contains API routing logic
Package router contains API routing logic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL