transportation_office

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetTransportationOfficesBadRequestCode int = 400

GetTransportationOfficesBadRequestCode is the HTTP code returned for type GetTransportationOfficesBadRequest

View Source
const GetTransportationOfficesForbiddenCode int = 403

GetTransportationOfficesForbiddenCode is the HTTP code returned for type GetTransportationOfficesForbidden

View Source
const GetTransportationOfficesInternalServerErrorCode int = 500

GetTransportationOfficesInternalServerErrorCode is the HTTP code returned for type GetTransportationOfficesInternalServerError

View Source
const GetTransportationOfficesNotFoundCode int = 404

GetTransportationOfficesNotFoundCode is the HTTP code returned for type GetTransportationOfficesNotFound

View Source
const GetTransportationOfficesOKCode int = 200

GetTransportationOfficesOKCode is the HTTP code returned for type GetTransportationOfficesOK

View Source
const GetTransportationOfficesOpenBadRequestCode int = 400

GetTransportationOfficesOpenBadRequestCode is the HTTP code returned for type GetTransportationOfficesOpenBadRequest

View Source
const GetTransportationOfficesOpenForbiddenCode int = 403

GetTransportationOfficesOpenForbiddenCode is the HTTP code returned for type GetTransportationOfficesOpenForbidden

View Source
const GetTransportationOfficesOpenInternalServerErrorCode int = 500

GetTransportationOfficesOpenInternalServerErrorCode is the HTTP code returned for type GetTransportationOfficesOpenInternalServerError

View Source
const GetTransportationOfficesOpenNotFoundCode int = 404

GetTransportationOfficesOpenNotFoundCode is the HTTP code returned for type GetTransportationOfficesOpenNotFound

View Source
const GetTransportationOfficesOpenOKCode int = 200

GetTransportationOfficesOpenOKCode is the HTTP code returned for type GetTransportationOfficesOpenOK

View Source
const GetTransportationOfficesOpenUnauthorizedCode int = 401

GetTransportationOfficesOpenUnauthorizedCode is the HTTP code returned for type GetTransportationOfficesOpenUnauthorized

View Source
const GetTransportationOfficesUnauthorizedCode int = 401

GetTransportationOfficesUnauthorizedCode is the HTTP code returned for type GetTransportationOfficesUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTransportationOffices

type GetTransportationOffices struct {
	Context *middleware.Context
	Handler GetTransportationOfficesHandler
}
GetTransportationOffices swagger:route GET /transportation-offices transportationOffice getTransportationOffices

Returns the transportation offices matching the search query

Returns the transportation offices matching the search query

func NewGetTransportationOffices

func NewGetTransportationOffices(ctx *middleware.Context, handler GetTransportationOfficesHandler) *GetTransportationOffices

NewGetTransportationOffices creates a new http.Handler for the get transportation offices operation

func (*GetTransportationOffices) ServeHTTP

type GetTransportationOfficesBadRequest

type GetTransportationOfficesBadRequest struct {

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

GetTransportationOfficesBadRequest The request payload is invalid

swagger:response getTransportationOfficesBadRequest

func NewGetTransportationOfficesBadRequest

func NewGetTransportationOfficesBadRequest() *GetTransportationOfficesBadRequest

NewGetTransportationOfficesBadRequest creates GetTransportationOfficesBadRequest with default headers values

func (*GetTransportationOfficesBadRequest) SetPayload

func (o *GetTransportationOfficesBadRequest) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get transportation offices bad request response

func (*GetTransportationOfficesBadRequest) WithPayload

WithPayload adds the payload to the get transportation offices bad request response

func (*GetTransportationOfficesBadRequest) WriteResponse

WriteResponse to the client

type GetTransportationOfficesForbidden

type GetTransportationOfficesForbidden struct {

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

GetTransportationOfficesForbidden The request was denied

swagger:response getTransportationOfficesForbidden

func NewGetTransportationOfficesForbidden

func NewGetTransportationOfficesForbidden() *GetTransportationOfficesForbidden

NewGetTransportationOfficesForbidden creates GetTransportationOfficesForbidden with default headers values

func (*GetTransportationOfficesForbidden) SetPayload

func (o *GetTransportationOfficesForbidden) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get transportation offices forbidden response

func (*GetTransportationOfficesForbidden) WithPayload

WithPayload adds the payload to the get transportation offices forbidden response

func (*GetTransportationOfficesForbidden) WriteResponse

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

WriteResponse to the client

type GetTransportationOfficesHandler

type GetTransportationOfficesHandler interface {
	Handle(GetTransportationOfficesParams) middleware.Responder
}

GetTransportationOfficesHandler interface for that can handle valid get transportation offices params

type GetTransportationOfficesHandlerFunc

type GetTransportationOfficesHandlerFunc func(GetTransportationOfficesParams) middleware.Responder

GetTransportationOfficesHandlerFunc turns a function with the right signature into a get transportation offices handler

func (GetTransportationOfficesHandlerFunc) Handle

Handle executing the request and returning a response

type GetTransportationOfficesInternalServerError

type GetTransportationOfficesInternalServerError struct {

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

GetTransportationOfficesInternalServerError A server error occurred

swagger:response getTransportationOfficesInternalServerError

func NewGetTransportationOfficesInternalServerError

func NewGetTransportationOfficesInternalServerError() *GetTransportationOfficesInternalServerError

NewGetTransportationOfficesInternalServerError creates GetTransportationOfficesInternalServerError with default headers values

func (*GetTransportationOfficesInternalServerError) SetPayload

SetPayload sets the payload to the get transportation offices internal server error response

func (*GetTransportationOfficesInternalServerError) WithPayload

WithPayload adds the payload to the get transportation offices internal server error response

func (*GetTransportationOfficesInternalServerError) WriteResponse

WriteResponse to the client

type GetTransportationOfficesNotFound

type GetTransportationOfficesNotFound struct {

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

GetTransportationOfficesNotFound The requested resource wasn't found

swagger:response getTransportationOfficesNotFound

func NewGetTransportationOfficesNotFound

func NewGetTransportationOfficesNotFound() *GetTransportationOfficesNotFound

NewGetTransportationOfficesNotFound creates GetTransportationOfficesNotFound with default headers values

func (*GetTransportationOfficesNotFound) SetPayload

func (o *GetTransportationOfficesNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get transportation offices not found response

func (*GetTransportationOfficesNotFound) WithPayload

WithPayload adds the payload to the get transportation offices not found response

func (*GetTransportationOfficesNotFound) WriteResponse

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

WriteResponse to the client

type GetTransportationOfficesOK

type GetTransportationOfficesOK struct {

	/*
	  In: Body
	*/
	Payload ghcmessages.TransportationOffices `json:"body,omitempty"`
}

GetTransportationOfficesOK Successfully retrieved transportation offices

swagger:response getTransportationOfficesOK

func NewGetTransportationOfficesOK

func NewGetTransportationOfficesOK() *GetTransportationOfficesOK

NewGetTransportationOfficesOK creates GetTransportationOfficesOK with default headers values

func (*GetTransportationOfficesOK) SetPayload

SetPayload sets the payload to the get transportation offices o k response

func (*GetTransportationOfficesOK) WithPayload

WithPayload adds the payload to the get transportation offices o k response

func (*GetTransportationOfficesOK) WriteResponse

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

WriteResponse to the client

type GetTransportationOfficesOpen

type GetTransportationOfficesOpen struct {
	Context *middleware.Context
	Handler GetTransportationOfficesOpenHandler
}
GetTransportationOfficesOpen swagger:route GET /open/transportation-offices transportationOffice getTransportationOfficesOpen

Returns the transportation offices matching the search query

This endpoint is publicly accessible as it is utilized to access transportation office information without having an office account.Returns the transportation offices matching the search query.

func NewGetTransportationOfficesOpen

func NewGetTransportationOfficesOpen(ctx *middleware.Context, handler GetTransportationOfficesOpenHandler) *GetTransportationOfficesOpen

NewGetTransportationOfficesOpen creates a new http.Handler for the get transportation offices open operation

func (*GetTransportationOfficesOpen) ServeHTTP

type GetTransportationOfficesOpenBadRequest

type GetTransportationOfficesOpenBadRequest struct {

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

GetTransportationOfficesOpenBadRequest The request payload is invalid

swagger:response getTransportationOfficesOpenBadRequest

func NewGetTransportationOfficesOpenBadRequest

func NewGetTransportationOfficesOpenBadRequest() *GetTransportationOfficesOpenBadRequest

NewGetTransportationOfficesOpenBadRequest creates GetTransportationOfficesOpenBadRequest with default headers values

func (*GetTransportationOfficesOpenBadRequest) SetPayload

SetPayload sets the payload to the get transportation offices open bad request response

func (*GetTransportationOfficesOpenBadRequest) WithPayload

WithPayload adds the payload to the get transportation offices open bad request response

func (*GetTransportationOfficesOpenBadRequest) WriteResponse

WriteResponse to the client

type GetTransportationOfficesOpenForbidden

type GetTransportationOfficesOpenForbidden struct {

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

GetTransportationOfficesOpenForbidden The request was denied

swagger:response getTransportationOfficesOpenForbidden

func NewGetTransportationOfficesOpenForbidden

func NewGetTransportationOfficesOpenForbidden() *GetTransportationOfficesOpenForbidden

NewGetTransportationOfficesOpenForbidden creates GetTransportationOfficesOpenForbidden with default headers values

func (*GetTransportationOfficesOpenForbidden) SetPayload

SetPayload sets the payload to the get transportation offices open forbidden response

func (*GetTransportationOfficesOpenForbidden) WithPayload

WithPayload adds the payload to the get transportation offices open forbidden response

func (*GetTransportationOfficesOpenForbidden) WriteResponse

WriteResponse to the client

type GetTransportationOfficesOpenHandler

type GetTransportationOfficesOpenHandler interface {
	Handle(GetTransportationOfficesOpenParams) middleware.Responder
}

GetTransportationOfficesOpenHandler interface for that can handle valid get transportation offices open params

type GetTransportationOfficesOpenHandlerFunc

type GetTransportationOfficesOpenHandlerFunc func(GetTransportationOfficesOpenParams) middleware.Responder

GetTransportationOfficesOpenHandlerFunc turns a function with the right signature into a get transportation offices open handler

func (GetTransportationOfficesOpenHandlerFunc) Handle

Handle executing the request and returning a response

type GetTransportationOfficesOpenInternalServerError

type GetTransportationOfficesOpenInternalServerError struct {

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

GetTransportationOfficesOpenInternalServerError A server error occurred

swagger:response getTransportationOfficesOpenInternalServerError

func NewGetTransportationOfficesOpenInternalServerError

func NewGetTransportationOfficesOpenInternalServerError() *GetTransportationOfficesOpenInternalServerError

NewGetTransportationOfficesOpenInternalServerError creates GetTransportationOfficesOpenInternalServerError with default headers values

func (*GetTransportationOfficesOpenInternalServerError) SetPayload

SetPayload sets the payload to the get transportation offices open internal server error response

func (*GetTransportationOfficesOpenInternalServerError) WithPayload

WithPayload adds the payload to the get transportation offices open internal server error response

func (*GetTransportationOfficesOpenInternalServerError) WriteResponse

WriteResponse to the client

type GetTransportationOfficesOpenNotFound

type GetTransportationOfficesOpenNotFound struct {

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

GetTransportationOfficesOpenNotFound The requested resource wasn't found

swagger:response getTransportationOfficesOpenNotFound

func NewGetTransportationOfficesOpenNotFound

func NewGetTransportationOfficesOpenNotFound() *GetTransportationOfficesOpenNotFound

NewGetTransportationOfficesOpenNotFound creates GetTransportationOfficesOpenNotFound with default headers values

func (*GetTransportationOfficesOpenNotFound) SetPayload

func (o *GetTransportationOfficesOpenNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get transportation offices open not found response

func (*GetTransportationOfficesOpenNotFound) WithPayload

WithPayload adds the payload to the get transportation offices open not found response

func (*GetTransportationOfficesOpenNotFound) WriteResponse

WriteResponse to the client

type GetTransportationOfficesOpenOK

type GetTransportationOfficesOpenOK struct {

	/*
	  In: Body
	*/
	Payload ghcmessages.TransportationOffices `json:"body,omitempty"`
}

GetTransportationOfficesOpenOK Successfully retrieved transportation offices

swagger:response getTransportationOfficesOpenOK

func NewGetTransportationOfficesOpenOK

func NewGetTransportationOfficesOpenOK() *GetTransportationOfficesOpenOK

NewGetTransportationOfficesOpenOK creates GetTransportationOfficesOpenOK with default headers values

func (*GetTransportationOfficesOpenOK) SetPayload

SetPayload sets the payload to the get transportation offices open o k response

func (*GetTransportationOfficesOpenOK) WithPayload

WithPayload adds the payload to the get transportation offices open o k response

func (*GetTransportationOfficesOpenOK) WriteResponse

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

WriteResponse to the client

type GetTransportationOfficesOpenParams

type GetTransportationOfficesOpenParams struct {

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

	/*Search string for transportation offices
	  Required: true
	  Min Length: 2
	  In: query
	*/
	Search string
}

GetTransportationOfficesOpenParams contains all the bound params for the get transportation offices open operation typically these are obtained from a http.Request

swagger:parameters getTransportationOfficesOpen

func NewGetTransportationOfficesOpenParams

func NewGetTransportationOfficesOpenParams() GetTransportationOfficesOpenParams

NewGetTransportationOfficesOpenParams creates a new GetTransportationOfficesOpenParams object

There are no default values defined in the spec.

func (*GetTransportationOfficesOpenParams) BindRequest

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 NewGetTransportationOfficesOpenParams() beforehand.

type GetTransportationOfficesOpenURL

type GetTransportationOfficesOpenURL struct {
	Search string
	// contains filtered or unexported fields
}

GetTransportationOfficesOpenURL generates an URL for the get transportation offices open operation

func (*GetTransportationOfficesOpenURL) Build

Build a url path and query string

func (*GetTransportationOfficesOpenURL) BuildFull

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

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

func (*GetTransportationOfficesOpenURL) Must

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

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

func (*GetTransportationOfficesOpenURL) SetBasePath

func (o *GetTransportationOfficesOpenURL) 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 (*GetTransportationOfficesOpenURL) String

String returns the string representation of the path with query string

func (*GetTransportationOfficesOpenURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTransportationOfficesOpenURL) WithBasePath

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

type GetTransportationOfficesOpenUnauthorized

type GetTransportationOfficesOpenUnauthorized struct {

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

GetTransportationOfficesOpenUnauthorized The request was denied

swagger:response getTransportationOfficesOpenUnauthorized

func NewGetTransportationOfficesOpenUnauthorized

func NewGetTransportationOfficesOpenUnauthorized() *GetTransportationOfficesOpenUnauthorized

NewGetTransportationOfficesOpenUnauthorized creates GetTransportationOfficesOpenUnauthorized with default headers values

func (*GetTransportationOfficesOpenUnauthorized) SetPayload

SetPayload sets the payload to the get transportation offices open unauthorized response

func (*GetTransportationOfficesOpenUnauthorized) WithPayload

WithPayload adds the payload to the get transportation offices open unauthorized response

func (*GetTransportationOfficesOpenUnauthorized) WriteResponse

WriteResponse to the client

type GetTransportationOfficesParams

type GetTransportationOfficesParams struct {

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

	/*Search string for transportation offices
	  Required: true
	  Min Length: 2
	  In: query
	*/
	Search string
}

GetTransportationOfficesParams contains all the bound params for the get transportation offices operation typically these are obtained from a http.Request

swagger:parameters getTransportationOffices

func NewGetTransportationOfficesParams

func NewGetTransportationOfficesParams() GetTransportationOfficesParams

NewGetTransportationOfficesParams creates a new GetTransportationOfficesParams object

There are no default values defined in the spec.

func (*GetTransportationOfficesParams) BindRequest

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 NewGetTransportationOfficesParams() beforehand.

type GetTransportationOfficesURL

type GetTransportationOfficesURL struct {
	Search string
	// contains filtered or unexported fields
}

GetTransportationOfficesURL generates an URL for the get transportation offices operation

func (*GetTransportationOfficesURL) Build

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

Build a url path and query string

func (*GetTransportationOfficesURL) BuildFull

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

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

func (*GetTransportationOfficesURL) Must

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

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

func (*GetTransportationOfficesURL) SetBasePath

func (o *GetTransportationOfficesURL) 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 (*GetTransportationOfficesURL) String

func (o *GetTransportationOfficesURL) String() string

String returns the string representation of the path with query string

func (*GetTransportationOfficesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTransportationOfficesURL) WithBasePath

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

type GetTransportationOfficesUnauthorized

type GetTransportationOfficesUnauthorized struct {

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

GetTransportationOfficesUnauthorized The request was denied

swagger:response getTransportationOfficesUnauthorized

func NewGetTransportationOfficesUnauthorized

func NewGetTransportationOfficesUnauthorized() *GetTransportationOfficesUnauthorized

NewGetTransportationOfficesUnauthorized creates GetTransportationOfficesUnauthorized with default headers values

func (*GetTransportationOfficesUnauthorized) SetPayload

func (o *GetTransportationOfficesUnauthorized) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get transportation offices unauthorized response

func (*GetTransportationOfficesUnauthorized) WithPayload

WithPayload adds the payload to the get transportation offices unauthorized response

func (*GetTransportationOfficesUnauthorized) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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