Documentation
¶
Index ¶
- func RespondCreated(c *gin.Context, message string)
- func RespondDeleted(c *gin.Context, message string)
- func RespondError(c *gin.Context, message interface{}, statusCode int)
- func RespondFailValidation(c *gin.Context, message interface{})
- func RespondJSON(c *gin.Context, data interface{})
- func RespondMethodNotAllowed(c *gin.Context, message string)
- func RespondNotFound(c *gin.Context, message string)
- func RespondRedirect(c *gin.Context, url string)
- func RespondUnauthorized(c *gin.Context, message string)
- func RespondUpdated(c *gin.Context, message string)
- func SetStatusCode(statCode int) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondCreated ¶
RespondCreated -- Set response for create process
func RespondDeleted ¶
RespondDeleted -- Set response for delete process
func RespondError ¶
RespondError -- Set response for error
func RespondFailValidation ¶
RespondFailValidation -- Set response for fail validation
func RespondJSON ¶
RespondJSON -- set response to json format
func RespondMethodNotAllowed ¶
RespondMethodNotAllowed -- Set response method not allowed
func RespondNotFound ¶
RespondNotFound -- Set response not found
func RespondRedirect ¶
func RespondUnauthorized ¶
RespondUnauthorized -- Set response not authorized
func RespondUpdated ¶
RespondUpdated -- Set response for update process
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.