Documentation
¶
Index ¶
- type Response
- func InternalServerError(message string, err error) Response
- func NotFound(message string) Response
- func Send(code int, message string, data interface{}) Response
- func Success(message string, data interface{}) Response
- func UnAuthenticated(message string) Response
- func ValidationError(message string, err error) Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { Code int `json:"code"` Message string `json:"message"` Data interface{} `json:"data"` }
func InternalServerError ¶
func UnAuthenticated ¶
UnAuthenticated Authentication Failure
func ValidationError ¶
Click to show internal directories.
Click to hide internal directories.