Documentation ¶
Index ¶
- Constants
- type GetTSPP
- type GetTSPPBadRequest
- type GetTSPPHandler
- type GetTSPPHandlerFunc
- type GetTSPPInternalServerError
- type GetTSPPNotFound
- type GetTSPPOK
- type GetTSPPParams
- type GetTSPPURL
- func (o *GetTSPPURL) Build() (*url.URL, error)
- func (o *GetTSPPURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTSPPURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTSPPURL) SetBasePath(bp string)
- func (o *GetTSPPURL) String() string
- func (o *GetTSPPURL) StringFull(scheme, host string) string
- func (o *GetTSPPURL) WithBasePath(bp string) *GetTSPPURL
- type GetTSPPUnauthorized
- type IndexTSPPs
- type IndexTSPPsBadRequest
- type IndexTSPPsHandler
- type IndexTSPPsHandlerFunc
- type IndexTSPPsInternalServerError
- type IndexTSPPsNotFound
- type IndexTSPPsOK
- func (o *IndexTSPPsOK) SetContentRange(contentRange string)
- func (o *IndexTSPPsOK) SetPayload(payload adminmessages.TransportationServiceProviderPerformances)
- func (o *IndexTSPPsOK) WithContentRange(contentRange string) *IndexTSPPsOK
- func (o *IndexTSPPsOK) WithPayload(payload adminmessages.TransportationServiceProviderPerformances) *IndexTSPPsOK
- func (o *IndexTSPPsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type IndexTSPPsParams
- type IndexTSPPsURL
- func (o *IndexTSPPsURL) Build() (*url.URL, error)
- func (o *IndexTSPPsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *IndexTSPPsURL) Must(u *url.URL, err error) *url.URL
- func (o *IndexTSPPsURL) SetBasePath(bp string)
- func (o *IndexTSPPsURL) String() string
- func (o *IndexTSPPsURL) StringFull(scheme, host string) string
- func (o *IndexTSPPsURL) WithBasePath(bp string) *IndexTSPPsURL
- type IndexTSPPsUnauthorized
Constants ¶
const GetTSPPBadRequestCode int = 400
GetTSPPBadRequestCode is the HTTP code returned for type GetTSPPBadRequest
const GetTSPPInternalServerErrorCode int = 500
GetTSPPInternalServerErrorCode is the HTTP code returned for type GetTSPPInternalServerError
const GetTSPPNotFoundCode int = 404
GetTSPPNotFoundCode is the HTTP code returned for type GetTSPPNotFound
const GetTSPPOKCode int = 200
GetTSPPOKCode is the HTTP code returned for type GetTSPPOK
GetTSPPUnauthorizedCode is the HTTP code returned for type GetTSPPUnauthorized
const IndexTSPPsBadRequestCode int = 400
IndexTSPPsBadRequestCode is the HTTP code returned for type IndexTSPPsBadRequest
const IndexTSPPsInternalServerErrorCode int = 500
IndexTSPPsInternalServerErrorCode is the HTTP code returned for type IndexTSPPsInternalServerError
const IndexTSPPsNotFoundCode int = 404
IndexTSPPsNotFoundCode is the HTTP code returned for type IndexTSPPsNotFound
const IndexTSPPsOKCode int = 200
IndexTSPPsOKCode is the HTTP code returned for type IndexTSPPsOK
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
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 ¶
func (fn GetTSPPHandlerFunc) Handle(params GetTSPPParams) middleware.Responder
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 ¶
func (o *GetTSPPOK) SetPayload(payload *adminmessages.TransportationServiceProviderPerformance)
SetPayload sets the payload to the get t s p p o k response
func (*GetTSPPOK) WithPayload ¶
func (o *GetTSPPOK) WithPayload(payload *adminmessages.TransportationServiceProviderPerformance) *GetTSPPOK
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 ¶
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) 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 ¶
func (fn IndexTSPPsHandlerFunc) Handle(params IndexTSPPsParams) middleware.Responder
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 ¶
func (o *IndexTSPPsOK) SetPayload(payload adminmessages.TransportationServiceProviderPerformances)
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 ¶
func (o *IndexTSPPsOK) WithPayload(payload adminmessages.TransportationServiceProviderPerformances) *IndexTSPPsOK
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 ¶
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