|
|
||
|---|---|---|
| .. | ||
| handler | ||
| httpx | ||
| middleware | ||
| router | ||
| README.md | ||
| gin.go | ||
| gin_test.go | ||
| providers_system.go | ||
| swagger.go | ||
README.md
Server Layer
The root package owns Gin server lifecycle and Swagger setup. HTTP concerns are grouped by role:
handler/: resource handlers and HTTP boundary validationmiddleware/: request metadata, auth, access control, audit, recovery, CORSrouter/: resource route registration and the system route registrarhttpx/: system adapter for shared response and cookie helpers
Keep new files in the matching role directory instead of adding transport files to the root package.