API Reference
API Overview
Complete reference for all Ginject public types, interfaces, and functions organized by package.
API Reference
Package core
App
Module
ModuleBuilder
Provider Interface
Controller Interface
Package ctx
ExecutionContext
Well-Known Metadata Keys
Protocol
WSContext
WSMessage
GoSafe
Request Parameter Types
| Type | Description |
|---|---|
ctx.Body | JSON request body — use .Bind(&dto) |
ctx.Query | URL query parameters — use .Get("key") |
ctx.Param | Path parameters — use .Get("id") |
ctx.Header | Request headers — use .Get("X-Key") |
ctx.Form | Multipart / urlencoded form — use .Get("field") |
ctx.File | Uploaded file — use .Get("field") |
ctx.WSPayload | WebSocket event payload — use .Get("field") |
ctx.Next | Call next middleware — func() |
ctx.Redirect | Redirect helper — func(url string) |