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") // ErrInvalidN means given N is invalid ErrInvalidN = newAPPError(http.StatusBadRequest, 40002, "N is invalid") // ErrInvalidLatitude means given latitude is invalid ErrInvalidLatitude = newAPPError(http.StatusBadRequest, 40003, "latitude is invalid") // ErrInvalidLongitude means given longitude is invalid ErrInvalidLongitude = newAPPError(http.StatusBadRequest, 40004, "longitude 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.