Documentation ¶
Index ¶
- func NewMiddleware() []gin.HandlerFunc
- func Wrap(fn func(ctx *gin.Context) (Result, error)) gin.HandlerFunc
- func WrapBody[Req any](fn func(ctx *gin.Context, req Req) (Result, error)) gin.HandlerFunc
- func WrapBuff(fn func(ctx *gin.Context) (Result, error)) gin.HandlerFunc
- func WrapBuffBody[Req any](fn func(ctx *gin.Context, req Req) (Result, error)) gin.HandlerFunc
- func WrapData(fn func(ctx *gin.Context) (Result, error)) gin.HandlerFunc
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware() []gin.HandlerFunc
func WrapBuffBody ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.