pilot

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package pilot provides a constrained legacy-handler migration demo. It reuses Nirvana's executor; it is not the general-purpose adapter API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marker

func Marker(name string, h http.Handler) http.Handler

Marker adds a demo-only backend header for observing operation ownership.

func Register

func Register(api huma.API, operations ...Operation) error

Register analyzes the whole batch before registering it on a fresh Huma/Chi API. Callers must abort startup on error. Descriptor inheritance is resolved by the caller. This pilot does not support dynamic registration or arbitrary adapters.

Types

type Operation

type Operation struct {
	Path        string
	Definition  definition.Definition
	Middlewares []definition.Middleware
}

Operation binds an original definition to its resolved descriptor path. Only explicit middleware lists and JSON/scalar parameters are supported.

Jump to

Keyboard shortcuts

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