handler

package
v0.0.0-...-03830f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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.

func NewHandler

func NewHandler(client *api.Client, cch cache.Cache) Handler

NewHandler ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL