api

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrailingSlashMiddleware added in v1.1.0

func TrailingSlashMiddleware(next http.Handler) http.Handler

TrailingSlashMiddleware redirects requests with trailing slashes to their canonical form

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) *Server

NewServer creates a new HTTP server

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