Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorInternalServerError = errors.New("SOMETHING_WENT_WRONG")
)
Functions ¶
This section is empty.
Types ¶
type ErrResponse ¶
type ErrResponse struct { Err error `json:"-"` // low-level runtime error ErrorMessage string `json:"error,omitempty"` // application-level error message, for debugging }
func ErrorResponse ¶
func ErrorResponse(err error) *ErrResponse
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
}
Click to show internal directories.
Click to hide internal directories.