Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func ErrorHandler(h ErrorReturningHandler) http.HandlerFunc
Types ¶
type ApiError ¶
type ApiError struct {
// contains filtered or unexported fields
}
func BadRequestErr ¶
func InternalServerErr ¶
func NewApiError ¶
func UnauthorizedErr ¶
type ErrorResponse ¶
type ErrorReturningHandler ¶
type ErrorReturningHandler func(w http.ResponseWriter, r *http.Request) *ApiError
Click to show internal directories.
Click to hide internal directories.