Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetErrorMessage ¶
func GetErrorStatus ¶
func NewCustomError ¶
func NewResponseHTTP ¶
func NewResponseHTTP(statusCode int, payload interface{}) *responseHttp
Types ¶
type CustomError ¶
type CustomError interface {
DefaultLogResponse()
}
type ResponseHTTP ¶
type ResponseHTTP interface { ResponseJSON(rw http.ResponseWriter, resp *responseHttp) ErrorJSON(rw http.ResponseWriter, ce customError) }
Click to show internal directories.
Click to hide internal directories.