Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidStart means given start is invalid ErrInvalidStart = newAPPError(http.StatusBadRequest, 40000, "start is invalid") // ErrInvalidEnd means given end is invalid ErrInvalidEnd = newAPPError(http.StatusBadRequest, 40001, "end is invalid") )
View Source
var ( // ErrCarNotExists means car not exists ErrCarNotExists = newAPPError(http.StatusNotFound, 40400, "car not exists") // ErrListCars means list cars is failure ErrListCars = newAPPError(http.StatusInternalServerError, 50000, "list cars is failure") )
View Source
var ( // ErrRateLimit means too many requests ErrRateLimit = newAPPError(http.StatusTooManyRequests, 42900, "too many requests") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.