Documentation ¶
Index ¶
- func CErrResponse(c *gin.Context, status int, customStatusCode int, errMessage string)
- func ErrResponse(c *gin.Context, statusCode int, errMessage string)
- func InternalServerError(c *gin.Context)
- func NewInternalServerError(c *gin.Context, message string, format string, args ...interface{})
- func SuccessResponse(c *gin.Context, message string, payload interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CErrResponse ¶
func ErrResponse ¶
TODO: add method for internet error with common msg
func InternalServerError ¶
func NewInternalServerError ¶
func SuccessResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.