gombit

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

The per-layer ablation of this stack lives in package framework (framework/ablation_bench_test.go), not here: it builds the runtime stack one unexported middleware at a time, which is only reachable from inside the package (issue #265).

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