lights

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 GetGrillLightsOKCode int = 200

GetGrillLightsOKCode is the HTTP code returned for type GetGrillLightsOK

View Source
const UpdateGrillLightsOKCode int = 200

UpdateGrillLightsOKCode is the HTTP code returned for type UpdateGrillLightsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetGrillLights

type GetGrillLights struct {
	Context *middleware.Context
	Handler GetGrillLightsHandler
}

GetGrillLights swagger:route GET /lights/grill Lights getGrillLights

Get the colors currently showing on the grill lights

func NewGetGrillLights

func NewGetGrillLights(ctx *middleware.Context, handler GetGrillLightsHandler) *GetGrillLights

NewGetGrillLights creates a new http.Handler for the get grill lights operation

func (*GetGrillLights) ServeHTTP

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

type GetGrillLightsDefault

type GetGrillLightsDefault struct {

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

GetGrillLightsDefault Unexpected error

swagger:response getGrillLightsDefault

func NewGetGrillLightsDefault

func NewGetGrillLightsDefault(code int) *GetGrillLightsDefault

NewGetGrillLightsDefault creates GetGrillLightsDefault with default headers values

func (*GetGrillLightsDefault) SetPayload

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

SetPayload sets the payload to the get grill lights default response

func (*GetGrillLightsDefault) SetStatusCode

func (o *GetGrillLightsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get grill lights default response

func (*GetGrillLightsDefault) WithPayload

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

WithPayload adds the payload to the get grill lights default response

func (*GetGrillLightsDefault) WithStatusCode

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

WithStatusCode adds the status to the get grill lights default response

func (*GetGrillLightsDefault) WriteResponse

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

WriteResponse to the client

type GetGrillLightsHandler

type GetGrillLightsHandler interface {
	Handle(GetGrillLightsParams) middleware.Responder
}

GetGrillLightsHandler interface for that can handle valid get grill lights params

type GetGrillLightsHandlerFunc

type GetGrillLightsHandlerFunc func(GetGrillLightsParams) middleware.Responder

GetGrillLightsHandlerFunc turns a function with the right signature into a get grill lights handler

func (GetGrillLightsHandlerFunc) Handle

Handle executing the request and returning a response

type GetGrillLightsOK

type GetGrillLightsOK struct {

	/*
	  In: Body
	*/
	Payload GetGrillLightsOKBody `json:"body,omitempty"`
}

GetGrillLightsOK Pixels were read successfully

swagger:response getGrillLightsOK

func NewGetGrillLightsOK

func NewGetGrillLightsOK() *GetGrillLightsOK

NewGetGrillLightsOK creates GetGrillLightsOK with default headers values

func (*GetGrillLightsOK) SetPayload

func (o *GetGrillLightsOK) SetPayload(payload GetGrillLightsOKBody)

SetPayload sets the payload to the get grill lights o k response

func (*GetGrillLightsOK) WithPayload

func (o *GetGrillLightsOK) WithPayload(payload GetGrillLightsOKBody) *GetGrillLightsOK

WithPayload adds the payload to the get grill lights o k response

func (*GetGrillLightsOK) WriteResponse

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

WriteResponse to the client

type GetGrillLightsOKBody

type GetGrillLightsOKBody []*models.LightStrip

GetGrillLightsOKBody get grill lights o k body swagger:model GetGrillLightsOKBody

type GetGrillLightsParams

type GetGrillLightsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request
}

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

swagger:parameters getGrillLights

func NewGetGrillLightsParams

func NewGetGrillLightsParams() GetGrillLightsParams

NewGetGrillLightsParams creates a new GetGrillLightsParams object with the default values initialized.

func (*GetGrillLightsParams) BindRequest

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

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

GetGrillLightsURL generates an URL for the get grill lights operation

func (*GetGrillLightsURL) Build

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

Build a url path and query string

func (*GetGrillLightsURL) BuildFull

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

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

func (*GetGrillLightsURL) Must

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

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

func (*GetGrillLightsURL) SetBasePath

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

func (o *GetGrillLightsURL) String() string

String returns the string representation of the path with query string

func (*GetGrillLightsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetGrillLightsURL) WithBasePath

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

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 UpdateGrillLights

type UpdateGrillLights struct {
	Context *middleware.Context
	Handler UpdateGrillLightsHandler
}

UpdateGrillLights swagger:route PUT /lights/grill Lights updateGrillLights

Enable a light show on the grill lights

func NewUpdateGrillLights

func NewUpdateGrillLights(ctx *middleware.Context, handler UpdateGrillLightsHandler) *UpdateGrillLights

NewUpdateGrillLights creates a new http.Handler for the update grill lights operation

func (*UpdateGrillLights) ServeHTTP

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

type UpdateGrillLightsDefault

type UpdateGrillLightsDefault struct {

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

UpdateGrillLightsDefault Unexpected error

swagger:response updateGrillLightsDefault

func NewUpdateGrillLightsDefault

func NewUpdateGrillLightsDefault(code int) *UpdateGrillLightsDefault

NewUpdateGrillLightsDefault creates UpdateGrillLightsDefault with default headers values

func (*UpdateGrillLightsDefault) SetPayload

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

SetPayload sets the payload to the update grill lights default response

func (*UpdateGrillLightsDefault) SetStatusCode

func (o *UpdateGrillLightsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update grill lights default response

func (*UpdateGrillLightsDefault) WithPayload

WithPayload adds the payload to the update grill lights default response

func (*UpdateGrillLightsDefault) WithStatusCode

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

WithStatusCode adds the status to the update grill lights default response

func (*UpdateGrillLightsDefault) WriteResponse

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

WriteResponse to the client

type UpdateGrillLightsHandler

type UpdateGrillLightsHandler interface {
	Handle(UpdateGrillLightsParams) middleware.Responder
}

UpdateGrillLightsHandler interface for that can handle valid update grill lights params

type UpdateGrillLightsHandlerFunc

type UpdateGrillLightsHandlerFunc func(UpdateGrillLightsParams) middleware.Responder

UpdateGrillLightsHandlerFunc turns a function with the right signature into a update grill lights handler

func (UpdateGrillLightsHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateGrillLightsOK

type UpdateGrillLightsOK struct {
}

UpdateGrillLightsOK The lights were updated successfully

swagger:response updateGrillLightsOK

func NewUpdateGrillLightsOK

func NewUpdateGrillLightsOK() *UpdateGrillLightsOK

NewUpdateGrillLightsOK creates UpdateGrillLightsOK with default headers values

func (*UpdateGrillLightsOK) WriteResponse

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

WriteResponse to the client

type UpdateGrillLightsParams

type UpdateGrillLightsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request

	/*The light show to enable
	  Required: true
	  In: query
	*/
	Name string
	/*The time period between updates in microseconds
	  Required: true
	  Minimum: 1
	  In: query
	  Default: 500000
	*/
	Period int64
}

UpdateGrillLightsParams contains all the bound params for the update grill lights operation typically these are obtained from a http.Request

swagger:parameters updateGrillLights

func NewUpdateGrillLightsParams

func NewUpdateGrillLightsParams() UpdateGrillLightsParams

NewUpdateGrillLightsParams creates a new UpdateGrillLightsParams object with the default values initialized.

func (*UpdateGrillLightsParams) BindRequest

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

type UpdateGrillLightsURL struct {
	Name   string
	Period int64
	// contains filtered or unexported fields
}

UpdateGrillLightsURL generates an URL for the update grill lights operation

func (*UpdateGrillLightsURL) Build

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

Build a url path and query string

func (*UpdateGrillLightsURL) BuildFull

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

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

func (*UpdateGrillLightsURL) Must

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

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

func (*UpdateGrillLightsURL) SetBasePath

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

func (o *UpdateGrillLightsURL) String() string

String returns the string representation of the path with query string

func (*UpdateGrillLightsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdateGrillLightsURL) WithBasePath

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

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