Documentation
¶
Index ¶
- Variables
- func New400Response(msg string, args ...interface{}) error
- func New500Response(msg string, args ...interface{}) error
- func NewResponse(code, status int, msg string, args ...interface{}) error
- func Wrap400Response(err error, msg string, args ...interface{}) error
- func Wrap500Response(err error, msg string, args ...interface{}) error
- func WrapResponse(err error, code, status int, msg string, args ...interface{}) error
- type Response
- type ResponseError
Constants ¶
This section is empty.
Variables ¶
View Source
var MessageSuccess = "Success"
Functions ¶
func New400Response ¶
func New500Response ¶
func NewResponse ¶
func Wrap400Response ¶
func Wrap500Response ¶
Types ¶
type ResponseError ¶
type ResponseError struct { Code int `json:"code"` Message string `json:"message"` StatusCode int `json:"status_code"` ERR error }
func UnWrapResponse ¶
func UnWrapResponse(err error) *ResponseError
func (*ResponseError) Error ¶
func (r *ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.