Documentation ¶
Index ¶
- func CallErrorNotFound(c *gin.Context, msg string, err error)
- func CallServerError(c *gin.Context, msg string, err error)
- func CallSuccessOK(c *gin.Context, msg string, data interface{})
- func CallUserError(c *gin.Context, msg string, err error)
- func CallUserFound(c *gin.Context, msg string, data interface{})
- func CallUserNotAuthorized(c *gin.Context, msg string, data interface{})
- func Contains(d string, dl []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallErrorNotFound ¶
CallErrorNotFound is for return API response not found
func CallServerError ¶
CallServerError is for return API response server error
func CallSuccessOK ¶
CallSuccessOK is for return API response with status code 200, you need to specify msg, and data as function parameter
func CallUserError ¶
CallUserError is for return error from user side
func CallUserFound ¶ added in v1.0.2
CallUserFound is for return API response with status code 307 means its redirected
func CallUserNotAuthorized ¶ added in v1.0.2
CallUserNotAuthorized is for return API response with status code 403, you need to specify msg, and data as function paramenter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.