Documentation
¶
Overview ¶
Package gombit is the root package for the Gombit framework.
Index ¶
Constants ¶
View Source
const ModulePath = "github.com/gombit-dev/gombit"
ModulePath is the canonical Go module path for Gombit.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package admin is Gombit's runtime generic admin (ADMIN-1 through ADMIN-3 / ADR-013).
|
Package admin is Gombit's runtime generic admin (ADMIN-1 through ADMIN-3 / ADR-013). |
|
Package auth is Gombit's runtime Bearer JWT surface (C3 / M5-2).
|
Package auth is Gombit's runtime Bearer JWT surface (C3 / M5-2). |
|
benchmarks
|
|
|
micro/gin
Package gin is the idiomatic plain-Gin row of the BENCH-1 framework-tax microbenchmark matrix (issue #141): Gin routing and binding-tag validation, no Huma, no Gombit framework.
|
Package gin is the idiomatic plain-Gin row of the BENCH-1 framework-tax microbenchmark matrix (issue #141): Gin routing and binding-tag validation, no Huma, no Gombit framework. |
|
micro/gombit
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.
|
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. |
|
micro/huma
Package huma is the bare Huma-over-Gin row of the BENCH-1 framework-tax microbenchmark matrix (issue #141): Huma's typed handlers, validation, and OpenAPI emission on top of Gin, without the Gombit runtime around it and without the D10 response envelope (that's a Gombit convention, not a Huma default).
|
Package huma is the bare Huma-over-Gin row of the BENCH-1 framework-tax microbenchmark matrix (issue #141): Huma's typed handlers, validation, and OpenAPI emission on top of Gin, without the Gombit runtime around it and without the D10 response envelope (that's a Gombit convention, not a Huma default). |
|
micro/nethttp
Package nethttp is the plain net/http row of the BENCH-1 framework-tax microbenchmark matrix (issue #141): no router, no framework, hand-written JSON encode/decode and manual validation.
|
Package nethttp is the plain net/http row of the BENCH-1 framework-tax microbenchmark matrix (issue #141): no router, no framework, hand-written JSON encode/decode and manual validation. |
|
micro/scenario
Package scenario defines the five request/response scenarios shared by every row of the BENCH-1 framework-tax microbenchmark matrix (issue #141 "1.
|
Package scenario defines the five request/response scenarios shared by every row of the BENCH-1 framework-tax microbenchmark matrix (issue #141 "1. |
|
Package build implements `gombit build --embed`: Vite production build, collectstatic into internal/web/static, and `go build` of a single binary that serves API + static + SPA fallback.
|
Package build implements `gombit build --embed`: Vite production build, collectstatic into internal/web/static, and `go build` of a single binary that serves API + static + SPA fallback. |
|
Package cache provides Gombit's backend-neutral cache boundary.
|
Package cache provides Gombit's backend-neutral cache boundary. |
|
Package cli is the Cobra command tree for `gombit` (D13 / ADR-014).
|
Package cli is the Cobra command tree for `gombit` (D13 / ADR-014). |
|
Package client generates a TypeScript API client from an OpenAPI 3.1 document.
|
Package client generates a TypeScript API client from an OpenAPI 3.1 document. |
|
cmd
|
|
|
contract-spike-openapi
command
|
|
|
gombit
command
|
|
|
Package commandgen implements `gombit make command`.
|
Package commandgen implements `gombit make command`. |
|
Package config provides Gombit's typed configuration boundary.
|
Package config provides Gombit's typed configuration boundary. |
|
Package contract defines Gombit's Huma DTO conventions, the D10 success and error envelopes, and draft §41 application error category mapping.
|
Package contract defines Gombit's Huma DTO conventions, the D10 success and error envelopes, and draft §41 application error category mapping. |
|
Package database opens supported GORM SQL drivers and exposes driver metadata.
|
Package database opens supported GORM SQL drivers and exposes driver metadata. |
|
conformance
Package conformance hosts the multi-DB conformance suite.
|
Package conformance hosts the multi-DB conformance suite. |
|
conformance/models
Package models holds GORM fixtures for the multi-DB conformance suite.
|
Package models holds GORM fixtures for the multi-DB conformance suite. |
|
Package dev implements `gombit dev`: one command that runs the Go API (with reload when air or watchexec is available), the Vite frontend with HMR, and live OpenAPI → TypeScript client regeneration.
|
Package dev implements `gombit dev`: one command that runs the Go API (with reload when air or watchexec is available), the Vite frontend with HMR, and live OpenAPI → TypeScript client regeneration. |
|
examples
|
|
|
admin
command
|
|
|
auth
command
|
|
|
auth-cookie
command
|
|
|
cache
command
|
|
|
config
command
|
|
|
contract
command
|
|
|
database
command
|
|
|
embed
command
|
|
|
lifecycle
command
|
|
|
logging
command
|
|
|
migrations
command
|
|
|
router
command
|
|
|
tutorial
command
Command tutorial is the finished application from docs/tutorial.md: one Task resource served through Huma, with cookie auth and the runtime admin.
|
Command tutorial is the finished application from docs/tutorial.md: one Task resource served through Huma, with cookie auth and the runtime admin. |
|
Package framework provides Gombit's runtime application lifecycle and HTTP surfaces (Gin router escape hatch and Huma contract API).
|
Package framework provides Gombit's runtime application lifecycle and HTTP surfaces (Gin router escape hatch and Huma contract API). |
|
Package goldentest is the M4-5 generator golden suite.
|
Package goldentest is the M4-5 generator golden suite. |
|
internal
|
|
|
Package logging builds Gombit's Zap logger and supports external sinks.
|
Package logging builds Gombit's Zap logger and supports external sinks. |
|
Package migrations wraps Atlas versioned migrations for Gombit apps.
|
Package migrations wraps Atlas versioned migrations for Gombit apps. |
|
Package resourcegen implements `gombit make resource`.
|
Package resourcegen implements `gombit make resource`. |
|
Package scaffold generates a new Gombit application (gombit new).
|
Package scaffold generates a new Gombit application (gombit new). |
Click to show internal directories.
Click to hide internal directories.