Documentation
¶
Index ¶
- Constants
- type GetRangeByID
- type GetRangeByIDBadRequest
- type GetRangeByIDHandler
- type GetRangeByIDHandlerFunc
- type GetRangeByIDNotFound
- type GetRangeByIDOK
- type GetRangeByIDParams
- type GetRangeByIDURL
- func (o *GetRangeByIDURL) Build() (*url.URL, error)
- func (o *GetRangeByIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRangeByIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRangeByIDURL) SetBasePath(bp string)
- func (o *GetRangeByIDURL) String() string
- func (o *GetRangeByIDURL) StringFull(scheme, host string) string
- func (o *GetRangeByIDURL) WithBasePath(bp string) *GetRangeByIDURL
- type GetRanges
- type GetRangesHTML
- type GetRangesHTMLHandler
- type GetRangesHTMLHandlerFunc
- type GetRangesHTMLInternalServerError
- type GetRangesHTMLOK
- type GetRangesHTMLParams
- type GetRangesHTMLURL
- func (o *GetRangesHTMLURL) Build() (*url.URL, error)
- func (o *GetRangesHTMLURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRangesHTMLURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRangesHTMLURL) SetBasePath(bp string)
- func (o *GetRangesHTMLURL) String() string
- func (o *GetRangesHTMLURL) StringFull(scheme, host string) string
- func (o *GetRangesHTMLURL) WithBasePath(bp string) *GetRangesHTMLURL
- type GetRangesHandler
- type GetRangesHandlerFunc
- type GetRangesInternalServerError
- type GetRangesOK
- type GetRangesParams
- type GetRangesURL
- func (o *GetRangesURL) Build() (*url.URL, error)
- func (o *GetRangesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRangesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRangesURL) SetBasePath(bp string)
- func (o *GetRangesURL) String() string
- func (o *GetRangesURL) StringFull(scheme, host string) string
- func (o *GetRangesURL) WithBasePath(bp string) *GetRangesURL
Constants ¶
const GetRangeByIDBadRequestCode int = 400
GetRangeByIDBadRequestCode is the HTTP code returned for type GetRangeByIDBadRequest
const GetRangeByIDNotFoundCode int = 404
GetRangeByIDNotFoundCode is the HTTP code returned for type GetRangeByIDNotFound
const GetRangeByIDOKCode int = 200
GetRangeByIDOKCode is the HTTP code returned for type GetRangeByIDOK
const GetRangesHTMLInternalServerErrorCode int = 500
GetRangesHTMLInternalServerErrorCode is the HTTP code returned for type GetRangesHTMLInternalServerError
const GetRangesHTMLOKCode int = 200
GetRangesHTMLOKCode is the HTTP code returned for type GetRangesHTMLOK
const GetRangesInternalServerErrorCode int = 500
GetRangesInternalServerErrorCode is the HTTP code returned for type GetRangesInternalServerError
const GetRangesOKCode int = 200
GetRangesOKCode is the HTTP code returned for type GetRangesOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRangeByID ¶
type GetRangeByID struct { Context *middleware.Context Handler GetRangeByIDHandler }
GetRangeByID swagger:route GET /range/{rangeId} range getRangeById
Find shooting range by ID ¶
Returns a single shooting range
func NewGetRangeByID ¶
func NewGetRangeByID(ctx *middleware.Context, handler GetRangeByIDHandler) *GetRangeByID
NewGetRangeByID creates a new http.Handler for the get range by Id operation
func (*GetRangeByID) ServeHTTP ¶
func (o *GetRangeByID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRangeByIDBadRequest ¶
type GetRangeByIDBadRequest struct { }
GetRangeByIDBadRequest Invalid ID supplied
swagger:response getRangeByIdBadRequest
func NewGetRangeByIDBadRequest ¶
func NewGetRangeByIDBadRequest() *GetRangeByIDBadRequest
NewGetRangeByIDBadRequest creates GetRangeByIDBadRequest with default headers values
func (*GetRangeByIDBadRequest) WriteResponse ¶
func (o *GetRangeByIDBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRangeByIDHandler ¶
type GetRangeByIDHandler interface {
Handle(GetRangeByIDParams) middleware.Responder
}
GetRangeByIDHandler interface for that can handle valid get range by Id params
type GetRangeByIDHandlerFunc ¶
type GetRangeByIDHandlerFunc func(GetRangeByIDParams) middleware.Responder
GetRangeByIDHandlerFunc turns a function with the right signature into a get range by Id handler
func (GetRangeByIDHandlerFunc) Handle ¶
func (fn GetRangeByIDHandlerFunc) Handle(params GetRangeByIDParams) middleware.Responder
Handle executing the request and returning a response
type GetRangeByIDNotFound ¶
type GetRangeByIDNotFound struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRangeByIDNotFound Shooting range not found
swagger:response getRangeByIdNotFound
func NewGetRangeByIDNotFound ¶
func NewGetRangeByIDNotFound() *GetRangeByIDNotFound
NewGetRangeByIDNotFound creates GetRangeByIDNotFound with default headers values
func (*GetRangeByIDNotFound) SetPayload ¶
func (o *GetRangeByIDNotFound) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get range by Id not found response
func (*GetRangeByIDNotFound) WithPayload ¶
func (o *GetRangeByIDNotFound) WithPayload(payload *models.APIResponse) *GetRangeByIDNotFound
WithPayload adds the payload to the get range by Id not found response
func (*GetRangeByIDNotFound) WriteResponse ¶
func (o *GetRangeByIDNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRangeByIDOK ¶
GetRangeByIDOK successful operation
swagger:response getRangeByIdOK
func NewGetRangeByIDOK ¶
func NewGetRangeByIDOK() *GetRangeByIDOK
NewGetRangeByIDOK creates GetRangeByIDOK with default headers values
func (*GetRangeByIDOK) SetPayload ¶
func (o *GetRangeByIDOK) SetPayload(payload *models.Range)
SetPayload sets the payload to the get range by Id o k response
func (*GetRangeByIDOK) WithPayload ¶
func (o *GetRangeByIDOK) WithPayload(payload *models.Range) *GetRangeByIDOK
WithPayload adds the payload to the get range by Id o k response
func (*GetRangeByIDOK) WriteResponse ¶
func (o *GetRangeByIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRangeByIDParams ¶
type GetRangeByIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*ID of shooting range to return Required: true In: path */ RangeID int64 }
GetRangeByIDParams contains all the bound params for the get range by Id operation typically these are obtained from a http.Request
swagger:parameters getRangeById
func NewGetRangeByIDParams ¶
func NewGetRangeByIDParams() GetRangeByIDParams
NewGetRangeByIDParams creates a new GetRangeByIDParams object no default values defined in spec.
func (*GetRangeByIDParams) BindRequest ¶
func (o *GetRangeByIDParams) 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 NewGetRangeByIDParams() beforehand.
type GetRangeByIDURL ¶
type GetRangeByIDURL struct { RangeID int64 // contains filtered or unexported fields }
GetRangeByIDURL generates an URL for the get range by Id operation
func (*GetRangeByIDURL) Build ¶
func (o *GetRangeByIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRangeByIDURL) BuildFull ¶
func (o *GetRangeByIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRangeByIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRangeByIDURL) SetBasePath ¶
func (o *GetRangeByIDURL) 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 (*GetRangeByIDURL) String ¶
func (o *GetRangeByIDURL) String() string
String returns the string representation of the path with query string
func (*GetRangeByIDURL) StringFull ¶
func (o *GetRangeByIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRangeByIDURL) WithBasePath ¶
func (o *GetRangeByIDURL) WithBasePath(bp string) *GetRangeByIDURL
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 GetRanges ¶
type GetRanges struct { Context *middleware.Context Handler GetRangesHandler }
GetRanges swagger:route GET /ranges range getRanges
List shooting ranges in the system ¶
Returns a list of shooting ranges
func NewGetRanges ¶
func NewGetRanges(ctx *middleware.Context, handler GetRangesHandler) *GetRanges
NewGetRanges creates a new http.Handler for the get ranges operation
type GetRangesHTML ¶
type GetRangesHTML struct { Context *middleware.Context Handler GetRangesHTMLHandler }
GetRangesHTML swagger:route GET /ranges/html range getRangesHtml
List shooting ranges in the system as HTML page ¶
Returns a list of shooting ranges as HTML page
func NewGetRangesHTML ¶
func NewGetRangesHTML(ctx *middleware.Context, handler GetRangesHTMLHandler) *GetRangesHTML
NewGetRangesHTML creates a new http.Handler for the get ranges Html operation
func (*GetRangesHTML) ServeHTTP ¶
func (o *GetRangesHTML) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRangesHTMLHandler ¶
type GetRangesHTMLHandler interface {
Handle(GetRangesHTMLParams) middleware.Responder
}
GetRangesHTMLHandler interface for that can handle valid get ranges Html params
type GetRangesHTMLHandlerFunc ¶
type GetRangesHTMLHandlerFunc func(GetRangesHTMLParams) middleware.Responder
GetRangesHTMLHandlerFunc turns a function with the right signature into a get ranges Html handler
func (GetRangesHTMLHandlerFunc) Handle ¶
func (fn GetRangesHTMLHandlerFunc) Handle(params GetRangesHTMLParams) middleware.Responder
Handle executing the request and returning a response
type GetRangesHTMLInternalServerError ¶
type GetRangesHTMLInternalServerError struct { /* In: Body */ Payload string `json:"body,omitempty"` }
GetRangesHTMLInternalServerError Retrieving list of ranges failed
swagger:response getRangesHtmlInternalServerError
func NewGetRangesHTMLInternalServerError ¶
func NewGetRangesHTMLInternalServerError() *GetRangesHTMLInternalServerError
NewGetRangesHTMLInternalServerError creates GetRangesHTMLInternalServerError with default headers values
func (*GetRangesHTMLInternalServerError) SetPayload ¶
func (o *GetRangesHTMLInternalServerError) SetPayload(payload string)
SetPayload sets the payload to the get ranges Html internal server error response
func (*GetRangesHTMLInternalServerError) WithPayload ¶
func (o *GetRangesHTMLInternalServerError) WithPayload(payload string) *GetRangesHTMLInternalServerError
WithPayload adds the payload to the get ranges Html internal server error response
func (*GetRangesHTMLInternalServerError) WriteResponse ¶
func (o *GetRangesHTMLInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRangesHTMLOK ¶
type GetRangesHTMLOK struct { /* In: Body */ Payload *models.HTMLResponse `json:"body,omitempty"` }
GetRangesHTMLOK successful operation
swagger:response getRangesHtmlOK
func NewGetRangesHTMLOK ¶
func NewGetRangesHTMLOK() *GetRangesHTMLOK
NewGetRangesHTMLOK creates GetRangesHTMLOK with default headers values
func (*GetRangesHTMLOK) SetPayload ¶
func (o *GetRangesHTMLOK) SetPayload(payload *models.HTMLResponse)
SetPayload sets the payload to the get ranges Html o k response
func (*GetRangesHTMLOK) WithPayload ¶
func (o *GetRangesHTMLOK) WithPayload(payload *models.HTMLResponse) *GetRangesHTMLOK
WithPayload adds the payload to the get ranges Html o k response
func (*GetRangesHTMLOK) WriteResponse ¶
func (o *GetRangesHTMLOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRangesHTMLParams ¶
type GetRangesHTMLParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Return active only ranges In: query Default: true */ ActiveOnly *bool }
GetRangesHTMLParams contains all the bound params for the get ranges Html operation typically these are obtained from a http.Request
swagger:parameters getRangesHtml
func NewGetRangesHTMLParams ¶
func NewGetRangesHTMLParams() GetRangesHTMLParams
NewGetRangesHTMLParams creates a new GetRangesHTMLParams object with the default values initialized.
func (*GetRangesHTMLParams) BindRequest ¶
func (o *GetRangesHTMLParams) 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 NewGetRangesHTMLParams() beforehand.
type GetRangesHTMLURL ¶
type GetRangesHTMLURL struct { ActiveOnly *bool // contains filtered or unexported fields }
GetRangesHTMLURL generates an URL for the get ranges Html operation
func (*GetRangesHTMLURL) Build ¶
func (o *GetRangesHTMLURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRangesHTMLURL) BuildFull ¶
func (o *GetRangesHTMLURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRangesHTMLURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRangesHTMLURL) SetBasePath ¶
func (o *GetRangesHTMLURL) 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 (*GetRangesHTMLURL) String ¶
func (o *GetRangesHTMLURL) String() string
String returns the string representation of the path with query string
func (*GetRangesHTMLURL) StringFull ¶
func (o *GetRangesHTMLURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRangesHTMLURL) WithBasePath ¶
func (o *GetRangesHTMLURL) WithBasePath(bp string) *GetRangesHTMLURL
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 GetRangesHandler ¶
type GetRangesHandler interface {
Handle(GetRangesParams) middleware.Responder
}
GetRangesHandler interface for that can handle valid get ranges params
type GetRangesHandlerFunc ¶
type GetRangesHandlerFunc func(GetRangesParams) middleware.Responder
GetRangesHandlerFunc turns a function with the right signature into a get ranges handler
func (GetRangesHandlerFunc) Handle ¶
func (fn GetRangesHandlerFunc) Handle(params GetRangesParams) middleware.Responder
Handle executing the request and returning a response
type GetRangesInternalServerError ¶
type GetRangesInternalServerError struct { /* In: Body */ Payload *models.APIResponse `json:"body,omitempty"` }
GetRangesInternalServerError Retrieving list of ranges failed
swagger:response getRangesInternalServerError
func NewGetRangesInternalServerError ¶
func NewGetRangesInternalServerError() *GetRangesInternalServerError
NewGetRangesInternalServerError creates GetRangesInternalServerError with default headers values
func (*GetRangesInternalServerError) SetPayload ¶
func (o *GetRangesInternalServerError) SetPayload(payload *models.APIResponse)
SetPayload sets the payload to the get ranges internal server error response
func (*GetRangesInternalServerError) WithPayload ¶
func (o *GetRangesInternalServerError) WithPayload(payload *models.APIResponse) *GetRangesInternalServerError
WithPayload adds the payload to the get ranges internal server error response
func (*GetRangesInternalServerError) WriteResponse ¶
func (o *GetRangesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRangesOK ¶
GetRangesOK successful operation
swagger:response getRangesOK
func NewGetRangesOK ¶
func NewGetRangesOK() *GetRangesOK
NewGetRangesOK creates GetRangesOK with default headers values
func (*GetRangesOK) SetPayload ¶
func (o *GetRangesOK) SetPayload(payload []*models.Range)
SetPayload sets the payload to the get ranges o k response
func (*GetRangesOK) WithPayload ¶
func (o *GetRangesOK) WithPayload(payload []*models.Range) *GetRangesOK
WithPayload adds the payload to the get ranges o k response
func (*GetRangesOK) WriteResponse ¶
func (o *GetRangesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRangesParams ¶
type GetRangesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Return active only ranges In: query Default: true */ ActiveOnly *bool }
GetRangesParams contains all the bound params for the get ranges operation typically these are obtained from a http.Request
swagger:parameters getRanges
func NewGetRangesParams ¶
func NewGetRangesParams() GetRangesParams
NewGetRangesParams creates a new GetRangesParams object with the default values initialized.
func (*GetRangesParams) BindRequest ¶
func (o *GetRangesParams) 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 NewGetRangesParams() beforehand.
type GetRangesURL ¶
type GetRangesURL struct { ActiveOnly *bool // contains filtered or unexported fields }
GetRangesURL generates an URL for the get ranges operation
func (*GetRangesURL) Build ¶
func (o *GetRangesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRangesURL) BuildFull ¶
func (o *GetRangesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRangesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRangesURL) SetBasePath ¶
func (o *GetRangesURL) 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 (*GetRangesURL) String ¶
func (o *GetRangesURL) String() string
String returns the string representation of the path with query string
func (*GetRangesURL) StringFull ¶
func (o *GetRangesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRangesURL) WithBasePath ¶
func (o *GetRangesURL) WithBasePath(bp string) *GetRangesURL
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
Source Files
¶
- get_range_by_id.go
- get_range_by_id_parameters.go
- get_range_by_id_responses.go
- get_range_by_id_urlbuilder.go
- get_ranges.go
- get_ranges_html.go
- get_ranges_html_parameters.go
- get_ranges_html_responses.go
- get_ranges_html_urlbuilder.go
- get_ranges_parameters.go
- get_ranges_responses.go
- get_ranges_urlbuilder.go