Documentation ¶
Index ¶
- Constants
- type GetTags
- type GetTagsBadRequest
- type GetTagsHandler
- type GetTagsHandlerFunc
- type GetTagsInternalServerError
- type GetTagsOK
- type GetTagsParams
- type GetTagsURL
- func (o *GetTagsURL) Build() (*url.URL, error)
- func (o *GetTagsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTagsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTagsURL) SetBasePath(bp string)
- func (o *GetTagsURL) String() string
- func (o *GetTagsURL) StringFull(scheme, host string) string
- func (o *GetTagsURL) WithBasePath(bp string) *GetTagsURL
Constants ¶
const GetTagsBadRequestCode int = 400
GetTagsBadRequestCode is the HTTP code returned for type GetTagsBadRequest
const GetTagsInternalServerErrorCode int = 500
GetTagsInternalServerErrorCode is the HTTP code returned for type GetTagsInternalServerError
const GetTagsOKCode int = 200
GetTagsOKCode is the HTTP code returned for type GetTagsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTags ¶
type GetTags struct { Context *middleware.Context Handler GetTagsHandler }
GetTags swagger:route GET /tags tags getTags
Query the database for all tag names
func NewGetTags ¶
func NewGetTags(ctx *middleware.Context, handler GetTagsHandler) *GetTags
NewGetTags creates a new http.Handler for the get tags operation
type GetTagsBadRequest ¶
GetTagsBadRequest Bad Request.
swagger:response getTagsBadRequest
func NewGetTagsBadRequest ¶
func NewGetTagsBadRequest() *GetTagsBadRequest
NewGetTagsBadRequest creates GetTagsBadRequest with default headers values
func (*GetTagsBadRequest) SetPayload ¶
func (o *GetTagsBadRequest) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the get tags bad request response
func (*GetTagsBadRequest) WithPayload ¶
func (o *GetTagsBadRequest) WithPayload(payload *models.QdbError) *GetTagsBadRequest
WithPayload adds the payload to the get tags bad request response
func (*GetTagsBadRequest) WriteResponse ¶
func (o *GetTagsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTagsHandler ¶
type GetTagsHandler interface {
Handle(GetTagsParams, *models.Principal) middleware.Responder
}
GetTagsHandler interface for that can handle valid get tags params
type GetTagsHandlerFunc ¶
type GetTagsHandlerFunc func(GetTagsParams, *models.Principal) middleware.Responder
GetTagsHandlerFunc turns a function with the right signature into a get tags handler
func (GetTagsHandlerFunc) Handle ¶
func (fn GetTagsHandlerFunc) Handle(params GetTagsParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetTagsInternalServerError ¶
type GetTagsInternalServerError struct { /* In: Body */ Payload *models.QdbError `json:"body,omitempty"` }
GetTagsInternalServerError Internal Error.
swagger:response getTagsInternalServerError
func NewGetTagsInternalServerError ¶
func NewGetTagsInternalServerError() *GetTagsInternalServerError
NewGetTagsInternalServerError creates GetTagsInternalServerError with default headers values
func (*GetTagsInternalServerError) SetPayload ¶
func (o *GetTagsInternalServerError) SetPayload(payload *models.QdbError)
SetPayload sets the payload to the get tags internal server error response
func (*GetTagsInternalServerError) WithPayload ¶
func (o *GetTagsInternalServerError) WithPayload(payload *models.QdbError) *GetTagsInternalServerError
WithPayload adds the payload to the get tags internal server error response
func (*GetTagsInternalServerError) WriteResponse ¶
func (o *GetTagsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTagsOK ¶
type GetTagsOK struct { /* In: Body */ Payload *models.QueryResult `json:"body,omitempty"` }
GetTagsOK Successful Operation
swagger:response getTagsOK
func NewGetTagsOK ¶
func NewGetTagsOK() *GetTagsOK
NewGetTagsOK creates GetTagsOK with default headers values
func (*GetTagsOK) SetPayload ¶
func (o *GetTagsOK) SetPayload(payload *models.QueryResult)
SetPayload sets the payload to the get tags o k response
func (*GetTagsOK) WithPayload ¶
func (o *GetTagsOK) WithPayload(payload *models.QueryResult) *GetTagsOK
WithPayload adds the payload to the get tags o k response
func (*GetTagsOK) WriteResponse ¶
func (o *GetTagsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTagsParams ¶
type GetTagsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ Regex *string }
GetTagsParams contains all the bound params for the get tags operation typically these are obtained from a http.Request
swagger:parameters get-tags
func NewGetTagsParams ¶
func NewGetTagsParams() GetTagsParams
NewGetTagsParams creates a new GetTagsParams object
There are no default values defined in the spec.
func (*GetTagsParams) BindRequest ¶
func (o *GetTagsParams) 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 NewGetTagsParams() beforehand.
type GetTagsURL ¶
type GetTagsURL struct { Regex *string // contains filtered or unexported fields }
GetTagsURL generates an URL for the get tags operation
func (*GetTagsURL) Build ¶
func (o *GetTagsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTagsURL) BuildFull ¶
func (o *GetTagsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTagsURL) SetBasePath ¶
func (o *GetTagsURL) 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 (*GetTagsURL) String ¶
func (o *GetTagsURL) String() string
String returns the string representation of the path with query string
func (*GetTagsURL) StringFull ¶
func (o *GetTagsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTagsURL) WithBasePath ¶
func (o *GetTagsURL) WithBasePath(bp string) *GetTagsURL
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