Documentation ¶
Index ¶
- func BadRequestError(message string) middleware.Responder
- func ForbiddenError(message string) middleware.Responder
- func InternalServerError(message string) middleware.Responder
- func MapGrpcError(err error) middleware.Responder
- func NotFoundError(message string) middleware.Responder
- func PaymentRequiredError(message string) middleware.Responder
- func PreConditionFailedError(message string) middleware.Responder
- func UnauthorisedError(message string) middleware.Responder
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestError ¶
func BadRequestError(message string) middleware.Responder
BadRequestError the error response when the response is bad request
func ForbiddenError ¶
func ForbiddenError(message string) middleware.Responder
ForbiddenError the error response when the response is Forbidden
func InternalServerError ¶
func InternalServerError(message string) middleware.Responder
InternalServerError the error response when the response is internal error
func MapGrpcError ¶
func MapGrpcError(err error) middleware.Responder
MapGrpcError do with GRPC code
func NotFoundError ¶
func NotFoundError(message string) middleware.Responder
NotFoundError the error response when the response is not implemented
func PaymentRequiredError ¶
func PaymentRequiredError(message string) middleware.Responder
PaymentRequiredError the error response when the response is PaymentRequiredError
func PreConditionFailedError ¶
func PreConditionFailedError(message string) middleware.Responder
PreConditionFailedError when precondition failed
func UnauthorisedError ¶
func UnauthorisedError(message string) middleware.Responder
UnauthorisedError the error response when the response is Unauthorised
Types ¶
type Handler ¶
type Handler interface { DeleteCache(params operations.DeleteCabsPickupsCountCacheParams) middleware.Responder GetPickupCount(params operations.GetCabsPickupsCountParams) middleware.Responder }
Handler interface has all the handle functions and implemented in classified go files.
Click to show internal directories.
Click to hide internal directories.