itineraries

package
v0.0.0-...-2b9725c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetItinerariesBadRequestCode int = 400

GetItinerariesBadRequestCode is the HTTP code returned for type GetItinerariesBadRequest

View Source
const GetItinerariesNotFoundCode int = 404

GetItinerariesNotFoundCode is the HTTP code returned for type GetItinerariesNotFound

View Source
const GetItinerariesOKCode int = 200

GetItinerariesOKCode is the HTTP code returned for type GetItinerariesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetItineraries

type GetItineraries struct {
	Context *middleware.Context
	Handler GetItinerariesHandler
}

GetItineraries swagger:route GET /itineraries itineraries getItineraries

GetItineraries get itineraries API

func NewGetItineraries

func NewGetItineraries(ctx *middleware.Context, handler GetItinerariesHandler) *GetItineraries

NewGetItineraries creates a new http.Handler for the get itineraries operation

func (*GetItineraries) ServeHTTP

func (o *GetItineraries) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetItinerariesBadRequest

type GetItinerariesBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetItinerariesBadRequest generic error response

swagger:response getItinerariesBadRequest

func NewGetItinerariesBadRequest

func NewGetItinerariesBadRequest() *GetItinerariesBadRequest

NewGetItinerariesBadRequest creates GetItinerariesBadRequest with default headers values

func (*GetItinerariesBadRequest) SetPayload

func (o *GetItinerariesBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the get itineraries bad request response

func (*GetItinerariesBadRequest) WithPayload

WithPayload adds the payload to the get itineraries bad request response

func (*GetItinerariesBadRequest) WriteResponse

func (o *GetItinerariesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItinerariesDefault

type GetItinerariesDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetItinerariesDefault generic error response

swagger:response getItinerariesDefault

func NewGetItinerariesDefault

func NewGetItinerariesDefault(code int) *GetItinerariesDefault

NewGetItinerariesDefault creates GetItinerariesDefault with default headers values

func (*GetItinerariesDefault) SetPayload

func (o *GetItinerariesDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get itineraries default response

func (*GetItinerariesDefault) SetStatusCode

func (o *GetItinerariesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get itineraries default response

func (*GetItinerariesDefault) WithPayload

func (o *GetItinerariesDefault) WithPayload(payload *models.Error) *GetItinerariesDefault

WithPayload adds the payload to the get itineraries default response

func (*GetItinerariesDefault) WithStatusCode

func (o *GetItinerariesDefault) WithStatusCode(code int) *GetItinerariesDefault

WithStatusCode adds the status to the get itineraries default response

func (*GetItinerariesDefault) WriteResponse

func (o *GetItinerariesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItinerariesHandler

type GetItinerariesHandler interface {
	Handle(GetItinerariesParams) middleware.Responder
}

GetItinerariesHandler interface for that can handle valid get itineraries params

type GetItinerariesHandlerFunc

type GetItinerariesHandlerFunc func(GetItinerariesParams) middleware.Responder

GetItinerariesHandlerFunc turns a function with the right signature into a get itineraries handler

func (GetItinerariesHandlerFunc) Handle

Handle executing the request and returning a response

type GetItinerariesNotFound

type GetItinerariesNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetItinerariesNotFound not found

swagger:response getItinerariesNotFound

func NewGetItinerariesNotFound

func NewGetItinerariesNotFound() *GetItinerariesNotFound

NewGetItinerariesNotFound creates GetItinerariesNotFound with default headers values

func (*GetItinerariesNotFound) SetPayload

func (o *GetItinerariesNotFound) SetPayload(payload *models.Error)

SetPayload sets the payload to the get itineraries not found response

func (*GetItinerariesNotFound) WithPayload

func (o *GetItinerariesNotFound) WithPayload(payload *models.Error) *GetItinerariesNotFound

WithPayload adds the payload to the get itineraries not found response

func (*GetItinerariesNotFound) WriteResponse

func (o *GetItinerariesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItinerariesOK

type GetItinerariesOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Itinerary `json:"body,omitempty"`
}

GetItinerariesOK list of itineraries

swagger:response getItinerariesOK

func NewGetItinerariesOK

func NewGetItinerariesOK() *GetItinerariesOK

NewGetItinerariesOK creates GetItinerariesOK with default headers values

func (*GetItinerariesOK) SetPayload

func (o *GetItinerariesOK) SetPayload(payload []*models.Itinerary)

SetPayload sets the payload to the get itineraries o k response

func (*GetItinerariesOK) WithPayload

func (o *GetItinerariesOK) WithPayload(payload []*models.Itinerary) *GetItinerariesOK

WithPayload adds the payload to the get itineraries o k response

func (*GetItinerariesOK) WriteResponse

func (o *GetItinerariesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetItinerariesParams

type GetItinerariesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	DepartureDate *string
	/*
	  In: query
	  Default: "1200"
	*/
	DepartureTime *string
	/*
	  In: query
	*/
	From *string
	/*
	  In: query
	*/
	ReturnDate *string
	/*
	  In: query
	  Default: "1200"
	*/
	ReturnTime *string
	/*
	  In: query
	*/
	To *string
}

GetItinerariesParams contains all the bound params for the get itineraries operation typically these are obtained from a http.Request

swagger:parameters GetItineraries

func NewGetItinerariesParams

func NewGetItinerariesParams() GetItinerariesParams

NewGetItinerariesParams creates a new GetItinerariesParams object with the default values initialized.

func (*GetItinerariesParams) BindRequest

func (o *GetItinerariesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetItinerariesParams() beforehand.

type GetItinerariesURL

type GetItinerariesURL struct {
	DepartureDate *string
	DepartureTime *string
	From          *string
	ReturnDate    *string
	ReturnTime    *string
	To            *string
	// contains filtered or unexported fields
}

GetItinerariesURL generates an URL for the get itineraries operation

func (*GetItinerariesURL) Build

func (o *GetItinerariesURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetItinerariesURL) BuildFull

func (o *GetItinerariesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetItinerariesURL) Must

func (o *GetItinerariesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetItinerariesURL) SetBasePath

func (o *GetItinerariesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetItinerariesURL) String

func (o *GetItinerariesURL) String() string

String returns the string representation of the path with query string

func (*GetItinerariesURL) StringFull

func (o *GetItinerariesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetItinerariesURL) WithBasePath

func (o *GetItinerariesURL) WithBasePath(bp string) *GetItinerariesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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