tags

package
v0.0.0-...-904661e Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetTagsBadRequestCode int = 400

GetTagsBadRequestCode is the HTTP code returned for type GetTagsBadRequest

View Source
const GetTagsInternalServerErrorCode int = 500

GetTagsInternalServerErrorCode is the HTTP code returned for type GetTagsInternalServerError

View Source
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

func (*GetTags) ServeHTTP

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

type GetTagsBadRequest

type GetTagsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.QdbError `json:"body,omitempty"`
}

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

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) Must

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL