Documentation
¶
Index ¶
- func BadRequest(c *gin.Context, err error)
- func BadRequestf(c *gin.Context, format string, a ...interface{})
- func ErrorStatus(c *gin.Context, err error, status int)
- func Forbidden(c *gin.Context, err error)
- func Forbiddenf(c *gin.Context, format string, a ...interface{})
- func InternalError(c *gin.Context, err error)
- func InternalErrorf(c *gin.Context, format string, a ...interface{})
- func JSON(c *gin.Context, v interface{}, status int)
- func NotFound(c *gin.Context, err error)
- func NotFoundf(c *gin.Context, format string, a ...interface{})
- func OK(c *gin.Context, v interface{})
- func Unauthorized(c *gin.Context, err error)
- func Unauthorizedf(c *gin.Context, format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequestf ¶
func Forbiddenf ¶
func InternalError ¶
func InternalErrorf ¶
func Unauthorized ¶
func Unauthorizedf ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.