version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetOKCode int = 200

GetOKCode is the HTTP code returned for type GetOK

Variables

This section is empty.

Functions

This section is empty.

Types

type Get

type Get struct {
	Context *middleware.Context
	Handler GetHandler
}
Get swagger:route GET / Version get

Shows details for Archer API

func NewGet

func NewGet(ctx *middleware.Context, handler GetHandler) *Get

NewGet creates a new http.Handler for the get operation

func (*Get) ServeHTTP

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

type GetHandler

type GetHandler interface {
	Handle(GetParams) middleware.Responder
}

GetHandler interface for that can handle valid get params

type GetHandlerFunc

type GetHandlerFunc func(GetParams) middleware.Responder

GetHandlerFunc turns a function with the right signature into a get handler

func (GetHandlerFunc) Handle

func (fn GetHandlerFunc) Handle(params GetParams) middleware.Responder

Handle executing the request and returning a response

type GetOK

type GetOK struct {

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

GetOK Version

swagger:response getOK

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates GetOK with default headers values

func (*GetOK) SetPayload

func (o *GetOK) SetPayload(payload *models.Version)

SetPayload sets the payload to the get o k response

func (*GetOK) WithPayload

func (o *GetOK) WithPayload(payload *models.Version) *GetOK

WithPayload adds the payload to the get o k response

func (*GetOK) WriteResponse

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

WriteResponse to the client

type GetParams

type GetParams struct {

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

GetParams contains all the bound params for the get operation typically these are obtained from a http.Request

swagger:parameters Get

func NewGetParams

func NewGetParams() GetParams

NewGetParams creates a new GetParams object

There are no default values defined in the spec.

func (*GetParams) BindRequest

func (o *GetParams) 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 NewGetParams() beforehand.

type GetURL

type GetURL struct {
	// contains filtered or unexported fields
}

GetURL generates an URL for the get operation

func (*GetURL) Build

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

Build a url path and query string

func (*GetURL) BuildFull

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

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

func (*GetURL) Must

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

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

func (*GetURL) SetBasePath

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

func (o *GetURL) String() string

String returns the string representation of the path with query string

func (*GetURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetURL) WithBasePath

func (o *GetURL) WithBasePath(bp string) *GetURL

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