Documentation
¶
Index ¶
- func WithResponseMiddleware(f HandleFunc) gin.HandlerFunc
- func WriteError(ctx *gin.Context, err error)
- func WriteErrorV2(ctx context.Context, w http.ResponseWriter, err error)
- func WriteSuccess(ctx *gin.Context, data any, statusCode ...int)
- func WriteSuccessV2(ctx context.Context, w http.ResponseWriter, data any, statusCode ...int)
- type HandleFunc
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithResponseMiddleware ¶
func WithResponseMiddleware(f HandleFunc) gin.HandlerFunc
func WriteError ¶
func WriteErrorV2 ¶ added in v1.0.9
func WriteErrorV2(ctx context.Context, w http.ResponseWriter, err error)
func WriteSuccessV2 ¶ added in v1.0.9
Types ¶
type HandleFunc ¶
Click to show internal directories.
Click to hide internal directories.