Documentation ¶
Index ¶
- Constants
- type SendDataToDevice
- type SendDataToDeviceBadRequest
- type SendDataToDeviceHandler
- type SendDataToDeviceHandlerFunc
- type SendDataToDeviceInternalServerError
- type SendDataToDeviceOK
- type SendDataToDeviceParams
- type SendDataToDeviceURL
- func (o *SendDataToDeviceURL) Build() (*url.URL, error)
- func (o *SendDataToDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SendDataToDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *SendDataToDeviceURL) SetBasePath(bp string)
- func (o *SendDataToDeviceURL) String() string
- func (o *SendDataToDeviceURL) StringFull(scheme, host string) string
- func (o *SendDataToDeviceURL) WithBasePath(bp string) *SendDataToDeviceURL
Constants ¶
const SendDataToDeviceBadRequestCode int = 400
SendDataToDeviceBadRequestCode is the HTTP code returned for type SendDataToDeviceBadRequest
const SendDataToDeviceInternalServerErrorCode int = 500
SendDataToDeviceInternalServerErrorCode is the HTTP code returned for type SendDataToDeviceInternalServerError
const SendDataToDeviceOKCode int = 200
SendDataToDeviceOKCode is the HTTP code returned for type SendDataToDeviceOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SendDataToDevice ¶
type SendDataToDevice struct { Context *middleware.Context Handler SendDataToDeviceHandler }
SendDataToDevice swagger:route POST /devices/{deviceId} Device sendDataToDevice
send data to device
send data to device
func NewSendDataToDevice ¶
func NewSendDataToDevice(ctx *middleware.Context, handler SendDataToDeviceHandler) *SendDataToDevice
NewSendDataToDevice creates a new http.Handler for the send data to device operation
func (*SendDataToDevice) ServeHTTP ¶
func (o *SendDataToDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type SendDataToDeviceBadRequest ¶
type SendDataToDeviceBadRequest struct { }
SendDataToDeviceBadRequest Bad request
swagger:response sendDataToDeviceBadRequest
func NewSendDataToDeviceBadRequest ¶
func NewSendDataToDeviceBadRequest() *SendDataToDeviceBadRequest
NewSendDataToDeviceBadRequest creates SendDataToDeviceBadRequest with default headers values
func (*SendDataToDeviceBadRequest) WriteResponse ¶
func (o *SendDataToDeviceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SendDataToDeviceHandler ¶
type SendDataToDeviceHandler interface {
Handle(SendDataToDeviceParams, *models.Principal) middleware.Responder
}
SendDataToDeviceHandler interface for that can handle valid send data to device params
type SendDataToDeviceHandlerFunc ¶
type SendDataToDeviceHandlerFunc func(SendDataToDeviceParams, *models.Principal) middleware.Responder
SendDataToDeviceHandlerFunc turns a function with the right signature into a send data to device handler
func (SendDataToDeviceHandlerFunc) Handle ¶
func (fn SendDataToDeviceHandlerFunc) Handle(params SendDataToDeviceParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type SendDataToDeviceInternalServerError ¶
type SendDataToDeviceInternalServerError struct { }
SendDataToDeviceInternalServerError Server internal error
swagger:response sendDataToDeviceInternalServerError
func NewSendDataToDeviceInternalServerError ¶
func NewSendDataToDeviceInternalServerError() *SendDataToDeviceInternalServerError
NewSendDataToDeviceInternalServerError creates SendDataToDeviceInternalServerError with default headers values
func (*SendDataToDeviceInternalServerError) WriteResponse ¶
func (o *SendDataToDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SendDataToDeviceOK ¶
type SendDataToDeviceOK struct { }
SendDataToDeviceOK Successful operation
swagger:response sendDataToDeviceOK
func NewSendDataToDeviceOK ¶
func NewSendDataToDeviceOK() *SendDataToDeviceOK
NewSendDataToDeviceOK creates SendDataToDeviceOK with default headers values
func (*SendDataToDeviceOK) WriteResponse ¶
func (o *SendDataToDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type SendDataToDeviceParams ¶
type SendDataToDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*data to device Required: true In: body */ DeviceData *models.DeviceData /*device identifer Required: true In: path */ DeviceID string }
SendDataToDeviceParams contains all the bound params for the send data to device operation typically these are obtained from a http.Request
swagger:parameters sendDataToDevice
func NewSendDataToDeviceParams ¶
func NewSendDataToDeviceParams() SendDataToDeviceParams
NewSendDataToDeviceParams creates a new SendDataToDeviceParams object no default values defined in spec.
func (*SendDataToDeviceParams) BindRequest ¶
func (o *SendDataToDeviceParams) 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 NewSendDataToDeviceParams() beforehand.
type SendDataToDeviceURL ¶
type SendDataToDeviceURL struct { DeviceID string // contains filtered or unexported fields }
SendDataToDeviceURL generates an URL for the send data to device operation
func (*SendDataToDeviceURL) Build ¶
func (o *SendDataToDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*SendDataToDeviceURL) BuildFull ¶
func (o *SendDataToDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*SendDataToDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*SendDataToDeviceURL) SetBasePath ¶
func (o *SendDataToDeviceURL) 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 (*SendDataToDeviceURL) String ¶
func (o *SendDataToDeviceURL) String() string
String returns the string representation of the path with query string
func (*SendDataToDeviceURL) StringFull ¶
func (o *SendDataToDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*SendDataToDeviceURL) WithBasePath ¶
func (o *SendDataToDeviceURL) WithBasePath(bp string) *SendDataToDeviceURL
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