transportation_service_provider_performances

package
v0.0.0-...-0751cc3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GetTSPPBadRequestCode int = 400

GetTSPPBadRequestCode is the HTTP code returned for type GetTSPPBadRequest

View Source
const GetTSPPInternalServerErrorCode int = 500

GetTSPPInternalServerErrorCode is the HTTP code returned for type GetTSPPInternalServerError

View Source
const GetTSPPNotFoundCode int = 404

GetTSPPNotFoundCode is the HTTP code returned for type GetTSPPNotFound

View Source
const GetTSPPOKCode int = 200

GetTSPPOKCode is the HTTP code returned for type GetTSPPOK

View Source
const GetTSPPUnauthorizedCode int = 401

GetTSPPUnauthorizedCode is the HTTP code returned for type GetTSPPUnauthorized

View Source
const IndexTSPPsBadRequestCode int = 400

IndexTSPPsBadRequestCode is the HTTP code returned for type IndexTSPPsBadRequest

View Source
const IndexTSPPsInternalServerErrorCode int = 500

IndexTSPPsInternalServerErrorCode is the HTTP code returned for type IndexTSPPsInternalServerError

View Source
const IndexTSPPsNotFoundCode int = 404

IndexTSPPsNotFoundCode is the HTTP code returned for type IndexTSPPsNotFound

View Source
const IndexTSPPsOKCode int = 200

IndexTSPPsOKCode is the HTTP code returned for type IndexTSPPsOK

View Source
const IndexTSPPsUnauthorizedCode int = 401

IndexTSPPsUnauthorizedCode is the HTTP code returned for type IndexTSPPsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTSPP

type GetTSPP struct {
	Context *middleware.Context
	Handler GetTSPPHandler
}
GetTSPP swagger:route GET /transportation_service_provider_performances/{tsppId} transportation_service_provider_performances getTSPP

Fetch a specific tspp

Returns a single tspp

func NewGetTSPP

func NewGetTSPP(ctx *middleware.Context, handler GetTSPPHandler) *GetTSPP

NewGetTSPP creates a new http.Handler for the get t s p p operation

func (*GetTSPP) ServeHTTP

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

type GetTSPPBadRequest

type GetTSPPBadRequest struct {
}

GetTSPPBadRequest invalid request

swagger:response getTSPPBadRequest

func NewGetTSPPBadRequest

func NewGetTSPPBadRequest() *GetTSPPBadRequest

NewGetTSPPBadRequest creates GetTSPPBadRequest with default headers values

func (*GetTSPPBadRequest) WriteResponse

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

WriteResponse to the client

type GetTSPPHandler

type GetTSPPHandler interface {
	Handle(GetTSPPParams) middleware.Responder
}

GetTSPPHandler interface for that can handle valid get t s p p params

type GetTSPPHandlerFunc

type GetTSPPHandlerFunc func(GetTSPPParams) middleware.Responder

GetTSPPHandlerFunc turns a function with the right signature into a get t s p p handler

func (GetTSPPHandlerFunc) Handle

Handle executing the request and returning a response

type GetTSPPInternalServerError

type GetTSPPInternalServerError struct {
}

GetTSPPInternalServerError server error

swagger:response getTSPPInternalServerError

func NewGetTSPPInternalServerError

func NewGetTSPPInternalServerError() *GetTSPPInternalServerError

NewGetTSPPInternalServerError creates GetTSPPInternalServerError with default headers values

func (*GetTSPPInternalServerError) WriteResponse

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

WriteResponse to the client

type GetTSPPNotFound

type GetTSPPNotFound struct {
}

GetTSPPNotFound tspp not found

swagger:response getTSPPNotFound

func NewGetTSPPNotFound

func NewGetTSPPNotFound() *GetTSPPNotFound

NewGetTSPPNotFound creates GetTSPPNotFound with default headers values

func (*GetTSPPNotFound) WriteResponse

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

WriteResponse to the client

type GetTSPPOK

type GetTSPPOK struct {

	/*
	  In: Body
	*/
	Payload *adminmessages.TransportationServiceProviderPerformance `json:"body,omitempty"`
}

GetTSPPOK success

swagger:response getTSPPOK

func NewGetTSPPOK

func NewGetTSPPOK() *GetTSPPOK

NewGetTSPPOK creates GetTSPPOK with default headers values

func (*GetTSPPOK) SetPayload

SetPayload sets the payload to the get t s p p o k response

func (*GetTSPPOK) WithPayload

WithPayload adds the payload to the get t s p p o k response

func (*GetTSPPOK) WriteResponse

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

WriteResponse to the client

type GetTSPPParams

type GetTSPPParams struct {

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

	/*
	  Required: true
	  In: path
	*/
	TsppID strfmt.UUID
}

GetTSPPParams contains all the bound params for the get t s p p operation typically these are obtained from a http.Request

swagger:parameters getTSPP

func NewGetTSPPParams

func NewGetTSPPParams() GetTSPPParams

NewGetTSPPParams creates a new GetTSPPParams object

There are no default values defined in the spec.

func (*GetTSPPParams) BindRequest

func (o *GetTSPPParams) 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 NewGetTSPPParams() beforehand.

type GetTSPPURL

type GetTSPPURL struct {
	TsppID strfmt.UUID
	// contains filtered or unexported fields
}

GetTSPPURL generates an URL for the get t s p p operation

func (*GetTSPPURL) Build

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

Build a url path and query string

func (*GetTSPPURL) BuildFull

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

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

func (*GetTSPPURL) Must

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

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

func (*GetTSPPURL) SetBasePath

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

func (o *GetTSPPURL) String() string

String returns the string representation of the path with query string

func (*GetTSPPURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTSPPURL) WithBasePath

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

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 GetTSPPUnauthorized

type GetTSPPUnauthorized struct {
}

GetTSPPUnauthorized request requires user authentication

swagger:response getTSPPUnauthorized

func NewGetTSPPUnauthorized

func NewGetTSPPUnauthorized() *GetTSPPUnauthorized

NewGetTSPPUnauthorized creates GetTSPPUnauthorized with default headers values

func (*GetTSPPUnauthorized) WriteResponse

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

WriteResponse to the client

type IndexTSPPs

type IndexTSPPs struct {
	Context *middleware.Context
	Handler IndexTSPPsHandler
}
IndexTSPPs swagger:route GET /transportation_service_provider_performances transportation_service_provider_performances indexTSPPs

List transportation service provider performances (TSPPs)

Returns a list of transportation service provider performances (TSPPs)

func NewIndexTSPPs

func NewIndexTSPPs(ctx *middleware.Context, handler IndexTSPPsHandler) *IndexTSPPs

NewIndexTSPPs creates a new http.Handler for the index t s p ps operation

func (*IndexTSPPs) ServeHTTP

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

type IndexTSPPsBadRequest

type IndexTSPPsBadRequest struct {
}

IndexTSPPsBadRequest invalid request

swagger:response indexTSPPsBadRequest

func NewIndexTSPPsBadRequest

func NewIndexTSPPsBadRequest() *IndexTSPPsBadRequest

NewIndexTSPPsBadRequest creates IndexTSPPsBadRequest with default headers values

func (*IndexTSPPsBadRequest) WriteResponse

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

WriteResponse to the client

type IndexTSPPsHandler

type IndexTSPPsHandler interface {
	Handle(IndexTSPPsParams) middleware.Responder
}

IndexTSPPsHandler interface for that can handle valid index t s p ps params

type IndexTSPPsHandlerFunc

type IndexTSPPsHandlerFunc func(IndexTSPPsParams) middleware.Responder

IndexTSPPsHandlerFunc turns a function with the right signature into a index t s p ps handler

func (IndexTSPPsHandlerFunc) Handle

Handle executing the request and returning a response

type IndexTSPPsInternalServerError

type IndexTSPPsInternalServerError struct {
}

IndexTSPPsInternalServerError server error

swagger:response indexTSPPsInternalServerError

func NewIndexTSPPsInternalServerError

func NewIndexTSPPsInternalServerError() *IndexTSPPsInternalServerError

NewIndexTSPPsInternalServerError creates IndexTSPPsInternalServerError with default headers values

func (*IndexTSPPsInternalServerError) WriteResponse

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

WriteResponse to the client

type IndexTSPPsNotFound

type IndexTSPPsNotFound struct {
}

IndexTSPPsNotFound office not found

swagger:response indexTSPPsNotFound

func NewIndexTSPPsNotFound

func NewIndexTSPPsNotFound() *IndexTSPPsNotFound

NewIndexTSPPsNotFound creates IndexTSPPsNotFound with default headers values

func (*IndexTSPPsNotFound) WriteResponse

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

WriteResponse to the client

type IndexTSPPsOK

type IndexTSPPsOK struct {
	/*Used for pagination

	 */
	ContentRange string `json:"Content-Range"`

	/*
	  In: Body
	*/
	Payload adminmessages.TransportationServiceProviderPerformances `json:"body,omitempty"`
}

IndexTSPPsOK success

swagger:response indexTSPPsOK

func NewIndexTSPPsOK

func NewIndexTSPPsOK() *IndexTSPPsOK

NewIndexTSPPsOK creates IndexTSPPsOK with default headers values

func (*IndexTSPPsOK) SetContentRange

func (o *IndexTSPPsOK) SetContentRange(contentRange string)

SetContentRange sets the contentRange to the index t s p ps o k response

func (*IndexTSPPsOK) SetPayload

SetPayload sets the payload to the index t s p ps o k response

func (*IndexTSPPsOK) WithContentRange

func (o *IndexTSPPsOK) WithContentRange(contentRange string) *IndexTSPPsOK

WithContentRange adds the contentRange to the index t s p ps o k response

func (*IndexTSPPsOK) WithPayload

WithPayload adds the payload to the index t s p ps o k response

func (*IndexTSPPsOK) WriteResponse

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

WriteResponse to the client

type IndexTSPPsParams

type IndexTSPPsParams struct {

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

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Order *bool
	/*
	  In: query
	*/
	Page *int64
	/*
	  In: query
	*/
	PerPage *int64
	/*
	  In: query
	*/
	Sort *string
}

IndexTSPPsParams contains all the bound params for the index t s p ps operation typically these are obtained from a http.Request

swagger:parameters indexTSPPs

func NewIndexTSPPsParams

func NewIndexTSPPsParams() IndexTSPPsParams

NewIndexTSPPsParams creates a new IndexTSPPsParams object

There are no default values defined in the spec.

func (*IndexTSPPsParams) BindRequest

func (o *IndexTSPPsParams) 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 NewIndexTSPPsParams() beforehand.

type IndexTSPPsURL

type IndexTSPPsURL struct {
	Filter  *string
	Order   *bool
	Page    *int64
	PerPage *int64
	Sort    *string
	// contains filtered or unexported fields
}

IndexTSPPsURL generates an URL for the index t s p ps operation

func (*IndexTSPPsURL) Build

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

Build a url path and query string

func (*IndexTSPPsURL) BuildFull

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

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

func (*IndexTSPPsURL) Must

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

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

func (*IndexTSPPsURL) SetBasePath

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

func (o *IndexTSPPsURL) String() string

String returns the string representation of the path with query string

func (*IndexTSPPsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*IndexTSPPsURL) WithBasePath

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

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 IndexTSPPsUnauthorized

type IndexTSPPsUnauthorized struct {
}

IndexTSPPsUnauthorized request requires user authentication

swagger:response indexTSPPsUnauthorized

func NewIndexTSPPsUnauthorized

func NewIndexTSPPsUnauthorized() *IndexTSPPsUnauthorized

NewIndexTSPPsUnauthorized creates IndexTSPPsUnauthorized with default headers values

func (*IndexTSPPsUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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