duty_locations

package
v0.0.0-...-c486877 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SearchDutyLocationsBadRequestCode int = 400

SearchDutyLocationsBadRequestCode is the HTTP code returned for type SearchDutyLocationsBadRequest

View Source
const SearchDutyLocationsForbiddenCode int = 403

SearchDutyLocationsForbiddenCode is the HTTP code returned for type SearchDutyLocationsForbidden

View Source
const SearchDutyLocationsInternalServerErrorCode int = 500

SearchDutyLocationsInternalServerErrorCode is the HTTP code returned for type SearchDutyLocationsInternalServerError

View Source
const SearchDutyLocationsNotFoundCode int = 404

SearchDutyLocationsNotFoundCode is the HTTP code returned for type SearchDutyLocationsNotFound

View Source
const SearchDutyLocationsOKCode int = 200

SearchDutyLocationsOKCode is the HTTP code returned for type SearchDutyLocationsOK

View Source
const SearchDutyLocationsUnauthorizedCode int = 401

SearchDutyLocationsUnauthorizedCode is the HTTP code returned for type SearchDutyLocationsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchDutyLocations

type SearchDutyLocations struct {
	Context *middleware.Context
	Handler SearchDutyLocationsHandler
}
SearchDutyLocations swagger:route GET /duty_locations duty_locations searchDutyLocations

Returns the duty locations matching the search query

Returns the duty locations matching the search query

func NewSearchDutyLocations

func NewSearchDutyLocations(ctx *middleware.Context, handler SearchDutyLocationsHandler) *SearchDutyLocations

NewSearchDutyLocations creates a new http.Handler for the search duty locations operation

func (*SearchDutyLocations) ServeHTTP

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

type SearchDutyLocationsBadRequest

type SearchDutyLocationsBadRequest struct {
}

SearchDutyLocationsBadRequest invalid request

swagger:response searchDutyLocationsBadRequest

func NewSearchDutyLocationsBadRequest

func NewSearchDutyLocationsBadRequest() *SearchDutyLocationsBadRequest

NewSearchDutyLocationsBadRequest creates SearchDutyLocationsBadRequest with default headers values

func (*SearchDutyLocationsBadRequest) WriteResponse

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

WriteResponse to the client

type SearchDutyLocationsForbidden

type SearchDutyLocationsForbidden struct {
}

SearchDutyLocationsForbidden user is not authorized

swagger:response searchDutyLocationsForbidden

func NewSearchDutyLocationsForbidden

func NewSearchDutyLocationsForbidden() *SearchDutyLocationsForbidden

NewSearchDutyLocationsForbidden creates SearchDutyLocationsForbidden with default headers values

func (*SearchDutyLocationsForbidden) WriteResponse

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

WriteResponse to the client

type SearchDutyLocationsHandler

type SearchDutyLocationsHandler interface {
	Handle(SearchDutyLocationsParams) middleware.Responder
}

SearchDutyLocationsHandler interface for that can handle valid search duty locations params

type SearchDutyLocationsHandlerFunc

type SearchDutyLocationsHandlerFunc func(SearchDutyLocationsParams) middleware.Responder

SearchDutyLocationsHandlerFunc turns a function with the right signature into a search duty locations handler

func (SearchDutyLocationsHandlerFunc) Handle

Handle executing the request and returning a response

type SearchDutyLocationsInternalServerError

type SearchDutyLocationsInternalServerError struct {
}

SearchDutyLocationsInternalServerError internal server error

swagger:response searchDutyLocationsInternalServerError

func NewSearchDutyLocationsInternalServerError

func NewSearchDutyLocationsInternalServerError() *SearchDutyLocationsInternalServerError

NewSearchDutyLocationsInternalServerError creates SearchDutyLocationsInternalServerError with default headers values

func (*SearchDutyLocationsInternalServerError) WriteResponse

WriteResponse to the client

type SearchDutyLocationsNotFound

type SearchDutyLocationsNotFound struct {
}

SearchDutyLocationsNotFound matching duty location not found

swagger:response searchDutyLocationsNotFound

func NewSearchDutyLocationsNotFound

func NewSearchDutyLocationsNotFound() *SearchDutyLocationsNotFound

NewSearchDutyLocationsNotFound creates SearchDutyLocationsNotFound with default headers values

func (*SearchDutyLocationsNotFound) WriteResponse

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

WriteResponse to the client

type SearchDutyLocationsOK

type SearchDutyLocationsOK struct {

	/*
	  In: Body
	*/
	Payload internalmessages.DutyLocationsPayload `json:"body,omitempty"`
}

SearchDutyLocationsOK the instance of the duty location

swagger:response searchDutyLocationsOK

func NewSearchDutyLocationsOK

func NewSearchDutyLocationsOK() *SearchDutyLocationsOK

NewSearchDutyLocationsOK creates SearchDutyLocationsOK with default headers values

func (*SearchDutyLocationsOK) SetPayload

SetPayload sets the payload to the search duty locations o k response

func (*SearchDutyLocationsOK) WithPayload

WithPayload adds the payload to the search duty locations o k response

func (*SearchDutyLocationsOK) WriteResponse

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

WriteResponse to the client

type SearchDutyLocationsParams

type SearchDutyLocationsParams struct {

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

	/*Search string for duty locations
	  Required: true
	  In: query
	*/
	Search string
}

SearchDutyLocationsParams contains all the bound params for the search duty locations operation typically these are obtained from a http.Request

swagger:parameters searchDutyLocations

func NewSearchDutyLocationsParams

func NewSearchDutyLocationsParams() SearchDutyLocationsParams

NewSearchDutyLocationsParams creates a new SearchDutyLocationsParams object

There are no default values defined in the spec.

func (*SearchDutyLocationsParams) 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 NewSearchDutyLocationsParams() beforehand.

type SearchDutyLocationsURL

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

SearchDutyLocationsURL generates an URL for the search duty locations operation

func (*SearchDutyLocationsURL) Build

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

Build a url path and query string

func (*SearchDutyLocationsURL) BuildFull

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

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

func (*SearchDutyLocationsURL) Must

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

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

func (*SearchDutyLocationsURL) SetBasePath

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

func (o *SearchDutyLocationsURL) String() string

String returns the string representation of the path with query string

func (*SearchDutyLocationsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*SearchDutyLocationsURL) 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 SearchDutyLocationsUnauthorized

type SearchDutyLocationsUnauthorized struct {
}

SearchDutyLocationsUnauthorized request requires user authentication

swagger:response searchDutyLocationsUnauthorized

func NewSearchDutyLocationsUnauthorized

func NewSearchDutyLocationsUnauthorized() *SearchDutyLocationsUnauthorized

NewSearchDutyLocationsUnauthorized creates SearchDutyLocationsUnauthorized with default headers values

func (*SearchDutyLocationsUnauthorized) WriteResponse

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