Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadRequestResponse ¶
type ErrorResponse ¶
func Forbidden ¶
func Forbidden(message string) ErrorResponse
func InternalServerError ¶
func InternalServerError(message string) ErrorResponse
func NotFound ¶
func NotFound(message string) ErrorResponse
func Unauthorized ¶
func Unauthorized(message string) ErrorResponse
type InvalidQueryResponse ¶
type InvalidQueryResponse struct {
ErrorCode string `json:"errorCode"`
Message string `json:"message"`
}
func InvalidQuery ¶
func InvalidQuery(errorCode string, message error) InvalidQueryResponse
type ValidationErrorResponse ¶
type ValidationErrorResponse struct {
ErrorCode string `json:"errorCode"`
Message string `json:"message"`
Error map[string]string `json:"error"`
}
func ValidationError ¶
func ValidationError(errorCode string, message error, error map[string]string) ValidationErrorResponse
Click to show internal directories.
Click to hide internal directories.