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 ¶
Types ¶
This section is empty.