Documentation
¶
Index ¶
- func RespondBadRequest(c *gin.Context, msg string)
- func RespondConflict(c *gin.Context, msg string)
- func RespondCreated(c *gin.Context, data any)
- func RespondError(c *gin.Context, status int, msg string)
- func RespondForbidden(c *gin.Context, msg string)
- func RespondInternalError(c *gin.Context)
- func RespondNoContent(c *gin.Context)
- func RespondNotFound(c *gin.Context, msg string)
- func RespondOK(c *gin.Context, data any)
- func RespondServiceUnavailable(c *gin.Context, msg string)
- func RespondUnauthorized(c *gin.Context, msg string)
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondBadRequest ¶
func RespondConflict ¶
func RespondCreated ¶
func RespondForbidden ¶
func RespondInternalError ¶
func RespondNoContent ¶
func RespondNotFound ¶
func RespondUnauthorized ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.