Documentation
¶
Index ¶
- Constants
- type SearchDutyLocations
- type SearchDutyLocationsBadRequest
- type SearchDutyLocationsForbidden
- type SearchDutyLocationsHandler
- type SearchDutyLocationsHandlerFunc
- type SearchDutyLocationsInternalServerError
- type SearchDutyLocationsNotFound
- type SearchDutyLocationsOK
- func (o *SearchDutyLocationsOK) SetPayload(payload internalmessages.DutyLocationsPayload)
- func (o *SearchDutyLocationsOK) WithPayload(payload internalmessages.DutyLocationsPayload) *SearchDutyLocationsOK
- func (o *SearchDutyLocationsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SearchDutyLocationsParams
- type SearchDutyLocationsURL
- func (o *SearchDutyLocationsURL) Build() (*url.URL, error)
- func (o *SearchDutyLocationsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SearchDutyLocationsURL) Must(u *url.URL, err error) *url.URL
- func (o *SearchDutyLocationsURL) SetBasePath(bp string)
- func (o *SearchDutyLocationsURL) String() string
- func (o *SearchDutyLocationsURL) StringFull(scheme, host string) string
- func (o *SearchDutyLocationsURL) WithBasePath(bp string) *SearchDutyLocationsURL
- type SearchDutyLocationsUnauthorized
Constants ¶
const SearchDutyLocationsBadRequestCode int = 400
SearchDutyLocationsBadRequestCode is the HTTP code returned for type SearchDutyLocationsBadRequest
const SearchDutyLocationsForbiddenCode int = 403
SearchDutyLocationsForbiddenCode is the HTTP code returned for type SearchDutyLocationsForbidden
const SearchDutyLocationsInternalServerErrorCode int = 500
SearchDutyLocationsInternalServerErrorCode is the HTTP code returned for type SearchDutyLocationsInternalServerError
const SearchDutyLocationsNotFoundCode int = 404
SearchDutyLocationsNotFoundCode is the HTTP code returned for type SearchDutyLocationsNotFound
const SearchDutyLocationsOKCode int = 200
SearchDutyLocationsOKCode is the HTTP code returned for type SearchDutyLocationsOK
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 ¶
func (fn SearchDutyLocationsHandlerFunc) Handle(params SearchDutyLocationsParams) middleware.Responder
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 ¶
func (o *SearchDutyLocationsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
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 ¶
func (o *SearchDutyLocationsOK) SetPayload(payload internalmessages.DutyLocationsPayload)
SetPayload sets the payload to the search duty locations o k response
func (*SearchDutyLocationsOK) WithPayload ¶
func (o *SearchDutyLocationsOK) WithPayload(payload internalmessages.DutyLocationsPayload) *SearchDutyLocationsOK
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 ¶
func (o *SearchDutyLocationsParams) 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 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 ¶
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 ¶
func (o *SearchDutyLocationsURL) WithBasePath(bp string) *SearchDutyLocationsURL
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