Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAuth = &ticketAPIError{status: http.StatusUnauthorized, msg: "invalid token"} ErrNotFound = &ticketAPIError{status: http.StatusNotFound, msg: "not found"} ErrUUDInvalid = &ticketAPIError{status: http.StatusBadRequest, msg: "invalid UUID"} ErrDuplicate = &ticketAPIError{status: http.StatusBadRequest, msg: "duplicate"} )
Functions ¶
func JSONHandleError ¶
func JSONHandleError(w http.ResponseWriter, err error)
Types ¶
Click to show internal directories.
Click to hide internal directories.