api

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 14 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
}

Server represents the HTTP server

func NewServer

func NewServer(cfg *config.Config, registryService service.RegistryService, metrics *telemetry.Metrics, versionInfo *v0.VersionBody, customUIHandler http.Handler) *Server

NewServer creates a new HTTP server

func (*Server) HumaAPI

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

HumaAPI returns the Huma API instance, allowing registration of new routes

func (*Server) Mux

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

Mux returns the HTTP ServeMux, allowing registration of custom HTTP handlers

func (*Server) Shutdown

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

Shutdown gracefully shuts down the server

func (*Server) Start

func (s *Server) Start() error

Start begins listening for incoming HTTP requests

Directories

Path Synopsis
handlers
v0
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