temperatures

package
v0.0.0-...-13dad8c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetTemperaturesOKCode int = 200

GetTemperaturesOKCode is the HTTP code returned for type GetTemperaturesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTemperatures

type GetTemperatures struct {
	Context *middleware.Context
	Handler GetTemperaturesHandler
}

GetTemperatures swagger:route GET /temperatures Temperatures getTemperatures

Get the current temperature reading from the requested probe(s)

func NewGetTemperatures

func NewGetTemperatures(ctx *middleware.Context, handler GetTemperaturesHandler) *GetTemperatures

NewGetTemperatures creates a new http.Handler for the get temperatures operation

func (*GetTemperatures) ServeHTTP

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

type GetTemperaturesDefault

type GetTemperaturesDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTemperaturesDefault Unexpected error

swagger:response getTemperaturesDefault

func NewGetTemperaturesDefault

func NewGetTemperaturesDefault(code int) *GetTemperaturesDefault

NewGetTemperaturesDefault creates GetTemperaturesDefault with default headers values

func (*GetTemperaturesDefault) SetPayload

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

SetPayload sets the payload to the get temperatures default response

func (*GetTemperaturesDefault) SetStatusCode

func (o *GetTemperaturesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get temperatures default response

func (*GetTemperaturesDefault) WithPayload

func (o *GetTemperaturesDefault) WithPayload(payload *models.Error) *GetTemperaturesDefault

WithPayload adds the payload to the get temperatures default response

func (*GetTemperaturesDefault) WithStatusCode

func (o *GetTemperaturesDefault) WithStatusCode(code int) *GetTemperaturesDefault

WithStatusCode adds the status to the get temperatures default response

func (*GetTemperaturesDefault) WriteResponse

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

WriteResponse to the client

type GetTemperaturesHandler

type GetTemperaturesHandler interface {
	Handle(GetTemperaturesParams) middleware.Responder
}

GetTemperaturesHandler interface for that can handle valid get temperatures params

type GetTemperaturesHandlerFunc

type GetTemperaturesHandlerFunc func(GetTemperaturesParams) middleware.Responder

GetTemperaturesHandlerFunc turns a function with the right signature into a get temperatures handler

func (GetTemperaturesHandlerFunc) Handle

Handle executing the request and returning a response

type GetTemperaturesOK

type GetTemperaturesOK struct {

	/*
	  In: Body
	*/
	Payload []*models.TemperatureReading `json:"body,omitempty"`
}

GetTemperaturesOK Temperature was read successfully

swagger:response getTemperaturesOK

func NewGetTemperaturesOK

func NewGetTemperaturesOK() *GetTemperaturesOK

NewGetTemperaturesOK creates GetTemperaturesOK with default headers values

func (*GetTemperaturesOK) SetPayload

func (o *GetTemperaturesOK) SetPayload(payload []*models.TemperatureReading)

SetPayload sets the payload to the get temperatures o k response

func (*GetTemperaturesOK) WithPayload

func (o *GetTemperaturesOK) WithPayload(payload []*models.TemperatureReading) *GetTemperaturesOK

WithPayload adds the payload to the get temperatures o k response

func (*GetTemperaturesOK) WriteResponse

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

WriteResponse to the client

type GetTemperaturesParams

type GetTemperaturesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The termerature probe to read from (or all probes if omitted)
	  Maximum: 3
	  Minimum: 0
	  In: query
	*/
	Probe *int32
}

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

swagger:parameters getTemperatures

func NewGetTemperaturesParams

func NewGetTemperaturesParams() GetTemperaturesParams

NewGetTemperaturesParams creates a new GetTemperaturesParams object with the default values initialized.

func (*GetTemperaturesParams) BindRequest

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

type GetTemperaturesURL

type GetTemperaturesURL struct {
	Probe *int32
	// contains filtered or unexported fields
}

GetTemperaturesURL generates an URL for the get temperatures operation

func (*GetTemperaturesURL) Build

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

Build a url path and query string

func (*GetTemperaturesURL) BuildFull

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

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

func (*GetTemperaturesURL) Must

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

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

func (*GetTemperaturesURL) SetBasePath

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

func (o *GetTemperaturesURL) String() string

String returns the string representation of the path with query string

func (*GetTemperaturesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetTemperaturesURL) WithBasePath

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

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