public

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetFilesFileInternalServerErrorCode int = 500

GetFilesFileInternalServerErrorCode is the HTTP code returned for type GetFilesFileInternalServerError

View Source
const GetFilesFileOKCode int = 200

GetFilesFileOKCode is the HTTP code returned for type GetFilesFileOK

View Source
const GetPingInternalServerErrorCode int = 500

GetPingInternalServerErrorCode is the HTTP code returned for type GetPingInternalServerError

View Source
const GetPingOKCode int = 200

GetPingOKCode is the HTTP code returned for type GetPingOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetFilesFile

type GetFilesFile struct {
	Context *middleware.Context
	Handler GetFilesFileHandler
}
GetFilesFile swagger:route GET /files/:file/ public getFilesFile

Serve Static Image

func NewGetFilesFile

func NewGetFilesFile(ctx *middleware.Context, handler GetFilesFileHandler) *GetFilesFile

NewGetFilesFile creates a new http.Handler for the get files file operation

func (*GetFilesFile) ServeHTTP

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

type GetFilesFileHandler

type GetFilesFileHandler interface {
	Handle(GetFilesFileParams) middleware.Responder
}

GetFilesFileHandler interface for that can handle valid get files file params

type GetFilesFileHandlerFunc

type GetFilesFileHandlerFunc func(GetFilesFileParams) middleware.Responder

GetFilesFileHandlerFunc turns a function with the right signature into a get files file handler

func (GetFilesFileHandlerFunc) Handle

Handle executing the request and returning a response

type GetFilesFileInternalServerError

type GetFilesFileInternalServerError struct {

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

GetFilesFileInternalServerError generic error response

swagger:response getFilesFileInternalServerError

func NewGetFilesFileInternalServerError

func NewGetFilesFileInternalServerError() *GetFilesFileInternalServerError

NewGetFilesFileInternalServerError creates GetFilesFileInternalServerError with default headers values

func (*GetFilesFileInternalServerError) SetPayload

func (o *GetFilesFileInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get files file internal server error response

func (*GetFilesFileInternalServerError) WithPayload

WithPayload adds the payload to the get files file internal server error response

func (*GetFilesFileInternalServerError) WriteResponse

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

WriteResponse to the client

type GetFilesFileOK

type GetFilesFileOK struct {

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

GetFilesFileOK ok

swagger:response getFilesFileOK

func NewGetFilesFileOK

func NewGetFilesFileOK() *GetFilesFileOK

NewGetFilesFileOK creates GetFilesFileOK with default headers values

func (*GetFilesFileOK) SetPayload

func (o *GetFilesFileOK) SetPayload(payload models.Uploads)

SetPayload sets the payload to the get files file o k response

func (*GetFilesFileOK) WithPayload

func (o *GetFilesFileOK) WithPayload(payload models.Uploads) *GetFilesFileOK

WithPayload adds the payload to the get files file o k response

func (*GetFilesFileOK) WriteResponse

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

WriteResponse to the client

type GetFilesFileParams

type GetFilesFileParams struct {

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

	/*
	  In: query
	*/
	Dpr *float64
	/*
	  In: query
	*/
	Format *string
	/*
	  In: query
	*/
	W *float64
}

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

swagger:parameters GetFilesFile

func NewGetFilesFileParams

func NewGetFilesFileParams() GetFilesFileParams

NewGetFilesFileParams creates a new GetFilesFileParams object

There are no default values defined in the spec.

func (*GetFilesFileParams) BindRequest

func (o *GetFilesFileParams) 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 NewGetFilesFileParams() beforehand.

type GetFilesFileURL

type GetFilesFileURL struct {
	Dpr    *float64
	Format *string
	W      *float64
	// contains filtered or unexported fields
}

GetFilesFileURL generates an URL for the get files file operation

func (*GetFilesFileURL) Build

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

Build a url path and query string

func (*GetFilesFileURL) BuildFull

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

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

func (*GetFilesFileURL) Must

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

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

func (*GetFilesFileURL) SetBasePath

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

func (o *GetFilesFileURL) String() string

String returns the string representation of the path with query string

func (*GetFilesFileURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetFilesFileURL) WithBasePath

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

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 GetPing

type GetPing struct {
	Context *middleware.Context
	Handler GetPingHandler
}
GetPing swagger:route GET /ping public getPing

This API endpoint always responds with "pong". When used over HTTP this API endpoint could also be used to measure network delays between your software and the API server.

func NewGetPing

func NewGetPing(ctx *middleware.Context, handler GetPingHandler) *GetPing

NewGetPing creates a new http.Handler for the get ping operation

func (*GetPing) ServeHTTP

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

type GetPingHandler

type GetPingHandler interface {
	Handle(GetPingParams, *models.Principal) middleware.Responder
}

GetPingHandler interface for that can handle valid get ping params

type GetPingHandlerFunc

type GetPingHandlerFunc func(GetPingParams, *models.Principal) middleware.Responder

GetPingHandlerFunc turns a function with the right signature into a get ping handler

func (GetPingHandlerFunc) Handle

func (fn GetPingHandlerFunc) Handle(params GetPingParams, principal *models.Principal) middleware.Responder

Handle executing the request and returning a response

type GetPingInternalServerError

type GetPingInternalServerError struct {

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

GetPingInternalServerError some error occurs

swagger:response getPingInternalServerError

func NewGetPingInternalServerError

func NewGetPingInternalServerError() *GetPingInternalServerError

NewGetPingInternalServerError creates GetPingInternalServerError with default headers values

func (*GetPingInternalServerError) SetPayload

func (o *GetPingInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get ping internal server error response

func (*GetPingInternalServerError) WithPayload

WithPayload adds the payload to the get ping internal server error response

func (*GetPingInternalServerError) WriteResponse

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

WriteResponse to the client

type GetPingOK

type GetPingOK struct {

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

GetPingOK ping response

swagger:response getPingOK

func NewGetPingOK

func NewGetPingOK() *GetPingOK

NewGetPingOK creates GetPingOK with default headers values

func (*GetPingOK) SetPayload

func (o *GetPingOK) SetPayload(payload *models.Ping)

SetPayload sets the payload to the get ping o k response

func (*GetPingOK) WithPayload

func (o *GetPingOK) WithPayload(payload *models.Ping) *GetPingOK

WithPayload adds the payload to the get ping o k response

func (*GetPingOK) WriteResponse

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

WriteResponse to the client

type GetPingParams

type GetPingParams struct {

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

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

swagger:parameters GetPing

func NewGetPingParams

func NewGetPingParams() GetPingParams

NewGetPingParams creates a new GetPingParams object

There are no default values defined in the spec.

func (*GetPingParams) BindRequest

func (o *GetPingParams) 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 NewGetPingParams() beforehand.

type GetPingURL

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

GetPingURL generates an URL for the get ping operation

func (*GetPingURL) Build

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

Build a url path and query string

func (*GetPingURL) BuildFull

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

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

func (*GetPingURL) Must

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

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

func (*GetPingURL) SetBasePath

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

func (o *GetPingURL) String() string

String returns the string representation of the path with query string

func (*GetPingURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPingURL) WithBasePath

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

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