gombit

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gombit is the Gombit-runtime row of the BENCH-1 framework-tax microbenchmark matrix (issue #141): the same four scenarios as benchmarks/micro/huma, but registered through a real framework.App instead of bare Huma+Gin (scenario.RegisterEnvelopedRoutes instead of scenario.RegisterRoutes — Gombit wraps responses in the D10 envelope, which bare Huma+Gin does not do by default), so the delta between the two rows isolates the cost of the Gombit runtime itself — request-id, security headers, XSS sanitization, D10 error mapping and envelope — on top of Huma.

This package must stay in its own directory/package, separate from the other three rows: constructing a framework.App calls contract.Install, which replaces Huma's process-global huma.NewError with Gombit's D10 error mapping, once, for the lifetime of the process (see contract.Install's doc comment). Since `go test` runs one process per package, keeping this row in its own package is what makes that safe rather than order-dependent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp() *framework.App

NewApp returns a full framework.App carrying the same four scenarios as the other rows, registered through the runtime's Huma API (app.API()).

Types

This section is empty.

Jump to

Keyboard shortcuts

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