Documentation
¶
Index ¶
- Constants
- type GetControlMessageForDevice
- type GetControlMessageForDeviceForbidden
- type GetControlMessageForDeviceHandler
- type GetControlMessageForDeviceHandlerFunc
- type GetControlMessageForDeviceInternalServerError
- type GetControlMessageForDeviceNotFound
- type GetControlMessageForDeviceOK
- type GetControlMessageForDeviceParams
- type GetControlMessageForDeviceURL
- func (o *GetControlMessageForDeviceURL) Build() (*url.URL, error)
- func (o *GetControlMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetControlMessageForDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *GetControlMessageForDeviceURL) SetBasePath(bp string)
- func (o *GetControlMessageForDeviceURL) String() string
- func (o *GetControlMessageForDeviceURL) StringFull(scheme, host string) string
- func (o *GetControlMessageForDeviceURL) WithBasePath(bp string) *GetControlMessageForDeviceURL
- type GetControlMessageForDeviceUnauthorized
- type GetDataMessageForDevice
- type GetDataMessageForDeviceForbidden
- type GetDataMessageForDeviceHandler
- type GetDataMessageForDeviceHandlerFunc
- type GetDataMessageForDeviceInternalServerError
- type GetDataMessageForDeviceNotFound
- type GetDataMessageForDeviceOK
- type GetDataMessageForDeviceParams
- type GetDataMessageForDeviceURL
- func (o *GetDataMessageForDeviceURL) Build() (*url.URL, error)
- func (o *GetDataMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDataMessageForDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDataMessageForDeviceURL) SetBasePath(bp string)
- func (o *GetDataMessageForDeviceURL) String() string
- func (o *GetDataMessageForDeviceURL) StringFull(scheme, host string) string
- func (o *GetDataMessageForDeviceURL) WithBasePath(bp string) *GetDataMessageForDeviceURL
- type GetDataMessageForDeviceUnauthorized
- type PostControlMessageForDevice
- type PostControlMessageForDeviceForbidden
- type PostControlMessageForDeviceHandler
- type PostControlMessageForDeviceHandlerFunc
- type PostControlMessageForDeviceInternalServerError
- type PostControlMessageForDeviceNotFound
- type PostControlMessageForDeviceOK
- type PostControlMessageForDeviceParams
- type PostControlMessageForDeviceURL
- func (o *PostControlMessageForDeviceURL) Build() (*url.URL, error)
- func (o *PostControlMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostControlMessageForDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *PostControlMessageForDeviceURL) SetBasePath(bp string)
- func (o *PostControlMessageForDeviceURL) String() string
- func (o *PostControlMessageForDeviceURL) StringFull(scheme, host string) string
- func (o *PostControlMessageForDeviceURL) WithBasePath(bp string) *PostControlMessageForDeviceURL
- type PostControlMessageForDeviceUnauthorized
- type PostDataMessageForDevice
- type PostDataMessageForDeviceAlreadyReported
- type PostDataMessageForDeviceBadRequest
- type PostDataMessageForDeviceForbidden
- type PostDataMessageForDeviceHandler
- type PostDataMessageForDeviceHandlerFunc
- type PostDataMessageForDeviceInternalServerError
- type PostDataMessageForDeviceNotFound
- type PostDataMessageForDeviceOK
- type PostDataMessageForDeviceParams
- type PostDataMessageForDeviceURL
- func (o *PostDataMessageForDeviceURL) Build() (*url.URL, error)
- func (o *PostDataMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostDataMessageForDeviceURL) Must(u *url.URL, err error) *url.URL
- func (o *PostDataMessageForDeviceURL) SetBasePath(bp string)
- func (o *PostDataMessageForDeviceURL) String() string
- func (o *PostDataMessageForDeviceURL) StringFull(scheme, host string) string
- func (o *PostDataMessageForDeviceURL) WithBasePath(bp string) *PostDataMessageForDeviceURL
- type PostDataMessageForDeviceUnauthorized
Constants ¶
const GetControlMessageForDeviceForbiddenCode int = 403
GetControlMessageForDeviceForbiddenCode is the HTTP code returned for type GetControlMessageForDeviceForbidden
const GetControlMessageForDeviceInternalServerErrorCode int = 500
GetControlMessageForDeviceInternalServerErrorCode is the HTTP code returned for type GetControlMessageForDeviceInternalServerError
const GetControlMessageForDeviceNotFoundCode int = 404
GetControlMessageForDeviceNotFoundCode is the HTTP code returned for type GetControlMessageForDeviceNotFound
const GetControlMessageForDeviceOKCode int = 200
GetControlMessageForDeviceOKCode is the HTTP code returned for type GetControlMessageForDeviceOK
GetControlMessageForDeviceUnauthorizedCode is the HTTP code returned for type GetControlMessageForDeviceUnauthorized
const GetDataMessageForDeviceForbiddenCode int = 403
GetDataMessageForDeviceForbiddenCode is the HTTP code returned for type GetDataMessageForDeviceForbidden
const GetDataMessageForDeviceInternalServerErrorCode int = 500
GetDataMessageForDeviceInternalServerErrorCode is the HTTP code returned for type GetDataMessageForDeviceInternalServerError
const GetDataMessageForDeviceNotFoundCode int = 404
GetDataMessageForDeviceNotFoundCode is the HTTP code returned for type GetDataMessageForDeviceNotFound
const GetDataMessageForDeviceOKCode int = 200
GetDataMessageForDeviceOKCode is the HTTP code returned for type GetDataMessageForDeviceOK
GetDataMessageForDeviceUnauthorizedCode is the HTTP code returned for type GetDataMessageForDeviceUnauthorized
const PostControlMessageForDeviceForbiddenCode int = 403
PostControlMessageForDeviceForbiddenCode is the HTTP code returned for type PostControlMessageForDeviceForbidden
const PostControlMessageForDeviceInternalServerErrorCode int = 500
PostControlMessageForDeviceInternalServerErrorCode is the HTTP code returned for type PostControlMessageForDeviceInternalServerError
const PostControlMessageForDeviceNotFoundCode int = 404
PostControlMessageForDeviceNotFoundCode is the HTTP code returned for type PostControlMessageForDeviceNotFound
const PostControlMessageForDeviceOKCode int = 200
PostControlMessageForDeviceOKCode is the HTTP code returned for type PostControlMessageForDeviceOK
PostControlMessageForDeviceUnauthorizedCode is the HTTP code returned for type PostControlMessageForDeviceUnauthorized
const PostDataMessageForDeviceAlreadyReportedCode int = 208
PostDataMessageForDeviceAlreadyReportedCode is the HTTP code returned for type PostDataMessageForDeviceAlreadyReported
const PostDataMessageForDeviceBadRequestCode int = 400
PostDataMessageForDeviceBadRequestCode is the HTTP code returned for type PostDataMessageForDeviceBadRequest
const PostDataMessageForDeviceForbiddenCode int = 403
PostDataMessageForDeviceForbiddenCode is the HTTP code returned for type PostDataMessageForDeviceForbidden
const PostDataMessageForDeviceInternalServerErrorCode int = 500
PostDataMessageForDeviceInternalServerErrorCode is the HTTP code returned for type PostDataMessageForDeviceInternalServerError
const PostDataMessageForDeviceNotFoundCode int = 404
PostDataMessageForDeviceNotFoundCode is the HTTP code returned for type PostDataMessageForDeviceNotFound
const PostDataMessageForDeviceOKCode int = 200
PostDataMessageForDeviceOKCode is the HTTP code returned for type PostDataMessageForDeviceOK
PostDataMessageForDeviceUnauthorizedCode is the HTTP code returned for type PostDataMessageForDeviceUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetControlMessageForDevice ¶
type GetControlMessageForDevice struct { Context *middleware.Context Handler GetControlMessageForDeviceHandler }
GetControlMessageForDevice swagger:route GET /control/{device_id}/in yggdrasil getControlMessageForDevice
Get control message for device API
func NewGetControlMessageForDevice ¶
func NewGetControlMessageForDevice(ctx *middleware.Context, handler GetControlMessageForDeviceHandler) *GetControlMessageForDevice
NewGetControlMessageForDevice creates a new http.Handler for the get control message for device operation
func (*GetControlMessageForDevice) ServeHTTP ¶
func (o *GetControlMessageForDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetControlMessageForDeviceForbidden ¶
type GetControlMessageForDeviceForbidden struct { }
GetControlMessageForDeviceForbidden Forbidden
swagger:response getControlMessageForDeviceForbidden
func NewGetControlMessageForDeviceForbidden ¶
func NewGetControlMessageForDeviceForbidden() *GetControlMessageForDeviceForbidden
NewGetControlMessageForDeviceForbidden creates GetControlMessageForDeviceForbidden with default headers values
func (*GetControlMessageForDeviceForbidden) WriteResponse ¶
func (o *GetControlMessageForDeviceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetControlMessageForDeviceHandler ¶
type GetControlMessageForDeviceHandler interface {
Handle(GetControlMessageForDeviceParams) middleware.Responder
}
GetControlMessageForDeviceHandler interface for that can handle valid get control message for device params
type GetControlMessageForDeviceHandlerFunc ¶
type GetControlMessageForDeviceHandlerFunc func(GetControlMessageForDeviceParams) middleware.Responder
GetControlMessageForDeviceHandlerFunc turns a function with the right signature into a get control message for device handler
func (GetControlMessageForDeviceHandlerFunc) Handle ¶
func (fn GetControlMessageForDeviceHandlerFunc) Handle(params GetControlMessageForDeviceParams) middleware.Responder
Handle executing the request and returning a response
type GetControlMessageForDeviceInternalServerError ¶
type GetControlMessageForDeviceInternalServerError struct { }
GetControlMessageForDeviceInternalServerError Error
swagger:response getControlMessageForDeviceInternalServerError
func NewGetControlMessageForDeviceInternalServerError ¶
func NewGetControlMessageForDeviceInternalServerError() *GetControlMessageForDeviceInternalServerError
NewGetControlMessageForDeviceInternalServerError creates GetControlMessageForDeviceInternalServerError with default headers values
func (*GetControlMessageForDeviceInternalServerError) WriteResponse ¶
func (o *GetControlMessageForDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetControlMessageForDeviceNotFound ¶
type GetControlMessageForDeviceNotFound struct { }
GetControlMessageForDeviceNotFound Error
swagger:response getControlMessageForDeviceNotFound
func NewGetControlMessageForDeviceNotFound ¶
func NewGetControlMessageForDeviceNotFound() *GetControlMessageForDeviceNotFound
NewGetControlMessageForDeviceNotFound creates GetControlMessageForDeviceNotFound with default headers values
func (*GetControlMessageForDeviceNotFound) WriteResponse ¶
func (o *GetControlMessageForDeviceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetControlMessageForDeviceOK ¶
type GetControlMessageForDeviceOK struct { /* In: Body */ Payload *models.Message `json:"body,omitempty"` }
GetControlMessageForDeviceOK Success
swagger:response getControlMessageForDeviceOK
func NewGetControlMessageForDeviceOK ¶
func NewGetControlMessageForDeviceOK() *GetControlMessageForDeviceOK
NewGetControlMessageForDeviceOK creates GetControlMessageForDeviceOK with default headers values
func (*GetControlMessageForDeviceOK) SetPayload ¶
func (o *GetControlMessageForDeviceOK) SetPayload(payload *models.Message)
SetPayload sets the payload to the get control message for device o k response
func (*GetControlMessageForDeviceOK) WithPayload ¶
func (o *GetControlMessageForDeviceOK) WithPayload(payload *models.Message) *GetControlMessageForDeviceOK
WithPayload adds the payload to the get control message for device o k response
func (*GetControlMessageForDeviceOK) WriteResponse ¶
func (o *GetControlMessageForDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetControlMessageForDeviceParams ¶
type GetControlMessageForDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string }
GetControlMessageForDeviceParams contains all the bound params for the get control message for device operation typically these are obtained from a http.Request
swagger:parameters GetControlMessageForDevice
func NewGetControlMessageForDeviceParams ¶
func NewGetControlMessageForDeviceParams() GetControlMessageForDeviceParams
NewGetControlMessageForDeviceParams creates a new GetControlMessageForDeviceParams object
There are no default values defined in the spec.
func (*GetControlMessageForDeviceParams) BindRequest ¶
func (o *GetControlMessageForDeviceParams) 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 NewGetControlMessageForDeviceParams() beforehand.
type GetControlMessageForDeviceURL ¶
type GetControlMessageForDeviceURL struct { DeviceID string // contains filtered or unexported fields }
GetControlMessageForDeviceURL generates an URL for the get control message for device operation
func (*GetControlMessageForDeviceURL) Build ¶
func (o *GetControlMessageForDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetControlMessageForDeviceURL) BuildFull ¶
func (o *GetControlMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetControlMessageForDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetControlMessageForDeviceURL) SetBasePath ¶
func (o *GetControlMessageForDeviceURL) 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 (*GetControlMessageForDeviceURL) String ¶
func (o *GetControlMessageForDeviceURL) String() string
String returns the string representation of the path with query string
func (*GetControlMessageForDeviceURL) StringFull ¶
func (o *GetControlMessageForDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetControlMessageForDeviceURL) WithBasePath ¶
func (o *GetControlMessageForDeviceURL) WithBasePath(bp string) *GetControlMessageForDeviceURL
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 GetControlMessageForDeviceUnauthorized ¶
type GetControlMessageForDeviceUnauthorized struct { }
GetControlMessageForDeviceUnauthorized Unauthorized
swagger:response getControlMessageForDeviceUnauthorized
func NewGetControlMessageForDeviceUnauthorized ¶
func NewGetControlMessageForDeviceUnauthorized() *GetControlMessageForDeviceUnauthorized
NewGetControlMessageForDeviceUnauthorized creates GetControlMessageForDeviceUnauthorized with default headers values
func (*GetControlMessageForDeviceUnauthorized) WriteResponse ¶
func (o *GetControlMessageForDeviceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDataMessageForDevice ¶
type GetDataMessageForDevice struct { Context *middleware.Context Handler GetDataMessageForDeviceHandler }
GetDataMessageForDevice swagger:route GET /data/{device_id}/in yggdrasil getDataMessageForDevice
Get data message for device API
func NewGetDataMessageForDevice ¶
func NewGetDataMessageForDevice(ctx *middleware.Context, handler GetDataMessageForDeviceHandler) *GetDataMessageForDevice
NewGetDataMessageForDevice creates a new http.Handler for the get data message for device operation
func (*GetDataMessageForDevice) ServeHTTP ¶
func (o *GetDataMessageForDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetDataMessageForDeviceForbidden ¶
type GetDataMessageForDeviceForbidden struct { }
GetDataMessageForDeviceForbidden Forbidden
swagger:response getDataMessageForDeviceForbidden
func NewGetDataMessageForDeviceForbidden ¶
func NewGetDataMessageForDeviceForbidden() *GetDataMessageForDeviceForbidden
NewGetDataMessageForDeviceForbidden creates GetDataMessageForDeviceForbidden with default headers values
func (*GetDataMessageForDeviceForbidden) WriteResponse ¶
func (o *GetDataMessageForDeviceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDataMessageForDeviceHandler ¶
type GetDataMessageForDeviceHandler interface {
Handle(GetDataMessageForDeviceParams) middleware.Responder
}
GetDataMessageForDeviceHandler interface for that can handle valid get data message for device params
type GetDataMessageForDeviceHandlerFunc ¶
type GetDataMessageForDeviceHandlerFunc func(GetDataMessageForDeviceParams) middleware.Responder
GetDataMessageForDeviceHandlerFunc turns a function with the right signature into a get data message for device handler
func (GetDataMessageForDeviceHandlerFunc) Handle ¶
func (fn GetDataMessageForDeviceHandlerFunc) Handle(params GetDataMessageForDeviceParams) middleware.Responder
Handle executing the request and returning a response
type GetDataMessageForDeviceInternalServerError ¶
type GetDataMessageForDeviceInternalServerError struct { }
GetDataMessageForDeviceInternalServerError Error
swagger:response getDataMessageForDeviceInternalServerError
func NewGetDataMessageForDeviceInternalServerError ¶
func NewGetDataMessageForDeviceInternalServerError() *GetDataMessageForDeviceInternalServerError
NewGetDataMessageForDeviceInternalServerError creates GetDataMessageForDeviceInternalServerError with default headers values
func (*GetDataMessageForDeviceInternalServerError) WriteResponse ¶
func (o *GetDataMessageForDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDataMessageForDeviceNotFound ¶
type GetDataMessageForDeviceNotFound struct { }
GetDataMessageForDeviceNotFound Error
swagger:response getDataMessageForDeviceNotFound
func NewGetDataMessageForDeviceNotFound ¶
func NewGetDataMessageForDeviceNotFound() *GetDataMessageForDeviceNotFound
NewGetDataMessageForDeviceNotFound creates GetDataMessageForDeviceNotFound with default headers values
func (*GetDataMessageForDeviceNotFound) WriteResponse ¶
func (o *GetDataMessageForDeviceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDataMessageForDeviceOK ¶
type GetDataMessageForDeviceOK struct { /* In: Body */ Payload *models.Message `json:"body,omitempty"` }
GetDataMessageForDeviceOK Success
swagger:response getDataMessageForDeviceOK
func NewGetDataMessageForDeviceOK ¶
func NewGetDataMessageForDeviceOK() *GetDataMessageForDeviceOK
NewGetDataMessageForDeviceOK creates GetDataMessageForDeviceOK with default headers values
func (*GetDataMessageForDeviceOK) SetPayload ¶
func (o *GetDataMessageForDeviceOK) SetPayload(payload *models.Message)
SetPayload sets the payload to the get data message for device o k response
func (*GetDataMessageForDeviceOK) WithPayload ¶
func (o *GetDataMessageForDeviceOK) WithPayload(payload *models.Message) *GetDataMessageForDeviceOK
WithPayload adds the payload to the get data message for device o k response
func (*GetDataMessageForDeviceOK) WriteResponse ¶
func (o *GetDataMessageForDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetDataMessageForDeviceParams ¶
type GetDataMessageForDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string }
GetDataMessageForDeviceParams contains all the bound params for the get data message for device operation typically these are obtained from a http.Request
swagger:parameters GetDataMessageForDevice
func NewGetDataMessageForDeviceParams ¶
func NewGetDataMessageForDeviceParams() GetDataMessageForDeviceParams
NewGetDataMessageForDeviceParams creates a new GetDataMessageForDeviceParams object
There are no default values defined in the spec.
func (*GetDataMessageForDeviceParams) BindRequest ¶
func (o *GetDataMessageForDeviceParams) 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 NewGetDataMessageForDeviceParams() beforehand.
type GetDataMessageForDeviceURL ¶
type GetDataMessageForDeviceURL struct { DeviceID string // contains filtered or unexported fields }
GetDataMessageForDeviceURL generates an URL for the get data message for device operation
func (*GetDataMessageForDeviceURL) Build ¶
func (o *GetDataMessageForDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetDataMessageForDeviceURL) BuildFull ¶
func (o *GetDataMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetDataMessageForDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetDataMessageForDeviceURL) SetBasePath ¶
func (o *GetDataMessageForDeviceURL) 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 (*GetDataMessageForDeviceURL) String ¶
func (o *GetDataMessageForDeviceURL) String() string
String returns the string representation of the path with query string
func (*GetDataMessageForDeviceURL) StringFull ¶
func (o *GetDataMessageForDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetDataMessageForDeviceURL) WithBasePath ¶
func (o *GetDataMessageForDeviceURL) WithBasePath(bp string) *GetDataMessageForDeviceURL
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 GetDataMessageForDeviceUnauthorized ¶
type GetDataMessageForDeviceUnauthorized struct { }
GetDataMessageForDeviceUnauthorized Unauthorized
swagger:response getDataMessageForDeviceUnauthorized
func NewGetDataMessageForDeviceUnauthorized ¶
func NewGetDataMessageForDeviceUnauthorized() *GetDataMessageForDeviceUnauthorized
NewGetDataMessageForDeviceUnauthorized creates GetDataMessageForDeviceUnauthorized with default headers values
func (*GetDataMessageForDeviceUnauthorized) WriteResponse ¶
func (o *GetDataMessageForDeviceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostControlMessageForDevice ¶
type PostControlMessageForDevice struct { Context *middleware.Context Handler PostControlMessageForDeviceHandler }
PostControlMessageForDevice swagger:route POST /control/{device_id}/out yggdrasil postControlMessageForDevice
Post control message for device API
func NewPostControlMessageForDevice ¶
func NewPostControlMessageForDevice(ctx *middleware.Context, handler PostControlMessageForDeviceHandler) *PostControlMessageForDevice
NewPostControlMessageForDevice creates a new http.Handler for the post control message for device operation
func (*PostControlMessageForDevice) ServeHTTP ¶
func (o *PostControlMessageForDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostControlMessageForDeviceForbidden ¶
type PostControlMessageForDeviceForbidden struct { }
PostControlMessageForDeviceForbidden Forbidden
swagger:response postControlMessageForDeviceForbidden
func NewPostControlMessageForDeviceForbidden ¶
func NewPostControlMessageForDeviceForbidden() *PostControlMessageForDeviceForbidden
NewPostControlMessageForDeviceForbidden creates PostControlMessageForDeviceForbidden with default headers values
func (*PostControlMessageForDeviceForbidden) WriteResponse ¶
func (o *PostControlMessageForDeviceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostControlMessageForDeviceHandler ¶
type PostControlMessageForDeviceHandler interface {
Handle(PostControlMessageForDeviceParams) middleware.Responder
}
PostControlMessageForDeviceHandler interface for that can handle valid post control message for device params
type PostControlMessageForDeviceHandlerFunc ¶
type PostControlMessageForDeviceHandlerFunc func(PostControlMessageForDeviceParams) middleware.Responder
PostControlMessageForDeviceHandlerFunc turns a function with the right signature into a post control message for device handler
func (PostControlMessageForDeviceHandlerFunc) Handle ¶
func (fn PostControlMessageForDeviceHandlerFunc) Handle(params PostControlMessageForDeviceParams) middleware.Responder
Handle executing the request and returning a response
type PostControlMessageForDeviceInternalServerError ¶
type PostControlMessageForDeviceInternalServerError struct { }
PostControlMessageForDeviceInternalServerError Error
swagger:response postControlMessageForDeviceInternalServerError
func NewPostControlMessageForDeviceInternalServerError ¶
func NewPostControlMessageForDeviceInternalServerError() *PostControlMessageForDeviceInternalServerError
NewPostControlMessageForDeviceInternalServerError creates PostControlMessageForDeviceInternalServerError with default headers values
func (*PostControlMessageForDeviceInternalServerError) WriteResponse ¶
func (o *PostControlMessageForDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostControlMessageForDeviceNotFound ¶
type PostControlMessageForDeviceNotFound struct { }
PostControlMessageForDeviceNotFound Error
swagger:response postControlMessageForDeviceNotFound
func NewPostControlMessageForDeviceNotFound ¶
func NewPostControlMessageForDeviceNotFound() *PostControlMessageForDeviceNotFound
NewPostControlMessageForDeviceNotFound creates PostControlMessageForDeviceNotFound with default headers values
func (*PostControlMessageForDeviceNotFound) WriteResponse ¶
func (o *PostControlMessageForDeviceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostControlMessageForDeviceOK ¶
type PostControlMessageForDeviceOK struct { }
PostControlMessageForDeviceOK Success
swagger:response postControlMessageForDeviceOK
func NewPostControlMessageForDeviceOK ¶
func NewPostControlMessageForDeviceOK() *PostControlMessageForDeviceOK
NewPostControlMessageForDeviceOK creates PostControlMessageForDeviceOK with default headers values
func (*PostControlMessageForDeviceOK) WriteResponse ¶
func (o *PostControlMessageForDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostControlMessageForDeviceParams ¶
type PostControlMessageForDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string /* Required: true In: body */ Message *models.Message }
PostControlMessageForDeviceParams contains all the bound params for the post control message for device operation typically these are obtained from a http.Request
swagger:parameters PostControlMessageForDevice
func NewPostControlMessageForDeviceParams ¶
func NewPostControlMessageForDeviceParams() PostControlMessageForDeviceParams
NewPostControlMessageForDeviceParams creates a new PostControlMessageForDeviceParams object
There are no default values defined in the spec.
func (*PostControlMessageForDeviceParams) BindRequest ¶
func (o *PostControlMessageForDeviceParams) 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 NewPostControlMessageForDeviceParams() beforehand.
type PostControlMessageForDeviceURL ¶
type PostControlMessageForDeviceURL struct { DeviceID string // contains filtered or unexported fields }
PostControlMessageForDeviceURL generates an URL for the post control message for device operation
func (*PostControlMessageForDeviceURL) Build ¶
func (o *PostControlMessageForDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostControlMessageForDeviceURL) BuildFull ¶
func (o *PostControlMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostControlMessageForDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostControlMessageForDeviceURL) SetBasePath ¶
func (o *PostControlMessageForDeviceURL) 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 (*PostControlMessageForDeviceURL) String ¶
func (o *PostControlMessageForDeviceURL) String() string
String returns the string representation of the path with query string
func (*PostControlMessageForDeviceURL) StringFull ¶
func (o *PostControlMessageForDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostControlMessageForDeviceURL) WithBasePath ¶
func (o *PostControlMessageForDeviceURL) WithBasePath(bp string) *PostControlMessageForDeviceURL
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 PostControlMessageForDeviceUnauthorized ¶
type PostControlMessageForDeviceUnauthorized struct { }
PostControlMessageForDeviceUnauthorized Unauthorized
swagger:response postControlMessageForDeviceUnauthorized
func NewPostControlMessageForDeviceUnauthorized ¶
func NewPostControlMessageForDeviceUnauthorized() *PostControlMessageForDeviceUnauthorized
NewPostControlMessageForDeviceUnauthorized creates PostControlMessageForDeviceUnauthorized with default headers values
func (*PostControlMessageForDeviceUnauthorized) WriteResponse ¶
func (o *PostControlMessageForDeviceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostDataMessageForDevice ¶
type PostDataMessageForDevice struct { Context *middleware.Context Handler PostDataMessageForDeviceHandler }
PostDataMessageForDevice swagger:route POST /data/{device_id}/out yggdrasil postDataMessageForDevice
Post data message for device API
func NewPostDataMessageForDevice ¶
func NewPostDataMessageForDevice(ctx *middleware.Context, handler PostDataMessageForDeviceHandler) *PostDataMessageForDevice
NewPostDataMessageForDevice creates a new http.Handler for the post data message for device operation
func (*PostDataMessageForDevice) ServeHTTP ¶
func (o *PostDataMessageForDevice) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostDataMessageForDeviceAlreadyReported ¶ added in v0.1.0
type PostDataMessageForDeviceAlreadyReported struct { }
PostDataMessageForDeviceAlreadyReported Already Reported
swagger:response postDataMessageForDeviceAlreadyReported
func NewPostDataMessageForDeviceAlreadyReported ¶ added in v0.1.0
func NewPostDataMessageForDeviceAlreadyReported() *PostDataMessageForDeviceAlreadyReported
NewPostDataMessageForDeviceAlreadyReported creates PostDataMessageForDeviceAlreadyReported with default headers values
func (*PostDataMessageForDeviceAlreadyReported) WriteResponse ¶ added in v0.1.0
func (o *PostDataMessageForDeviceAlreadyReported) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostDataMessageForDeviceBadRequest ¶
type PostDataMessageForDeviceBadRequest struct { }
PostDataMessageForDeviceBadRequest Error
swagger:response postDataMessageForDeviceBadRequest
func NewPostDataMessageForDeviceBadRequest ¶
func NewPostDataMessageForDeviceBadRequest() *PostDataMessageForDeviceBadRequest
NewPostDataMessageForDeviceBadRequest creates PostDataMessageForDeviceBadRequest with default headers values
func (*PostDataMessageForDeviceBadRequest) WriteResponse ¶
func (o *PostDataMessageForDeviceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostDataMessageForDeviceForbidden ¶
type PostDataMessageForDeviceForbidden struct { }
PostDataMessageForDeviceForbidden Forbidden
swagger:response postDataMessageForDeviceForbidden
func NewPostDataMessageForDeviceForbidden ¶
func NewPostDataMessageForDeviceForbidden() *PostDataMessageForDeviceForbidden
NewPostDataMessageForDeviceForbidden creates PostDataMessageForDeviceForbidden with default headers values
func (*PostDataMessageForDeviceForbidden) WriteResponse ¶
func (o *PostDataMessageForDeviceForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostDataMessageForDeviceHandler ¶
type PostDataMessageForDeviceHandler interface {
Handle(PostDataMessageForDeviceParams) middleware.Responder
}
PostDataMessageForDeviceHandler interface for that can handle valid post data message for device params
type PostDataMessageForDeviceHandlerFunc ¶
type PostDataMessageForDeviceHandlerFunc func(PostDataMessageForDeviceParams) middleware.Responder
PostDataMessageForDeviceHandlerFunc turns a function with the right signature into a post data message for device handler
func (PostDataMessageForDeviceHandlerFunc) Handle ¶
func (fn PostDataMessageForDeviceHandlerFunc) Handle(params PostDataMessageForDeviceParams) middleware.Responder
Handle executing the request and returning a response
type PostDataMessageForDeviceInternalServerError ¶
type PostDataMessageForDeviceInternalServerError struct { }
PostDataMessageForDeviceInternalServerError Error
swagger:response postDataMessageForDeviceInternalServerError
func NewPostDataMessageForDeviceInternalServerError ¶
func NewPostDataMessageForDeviceInternalServerError() *PostDataMessageForDeviceInternalServerError
NewPostDataMessageForDeviceInternalServerError creates PostDataMessageForDeviceInternalServerError with default headers values
func (*PostDataMessageForDeviceInternalServerError) WriteResponse ¶
func (o *PostDataMessageForDeviceInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostDataMessageForDeviceNotFound ¶
type PostDataMessageForDeviceNotFound struct { }
PostDataMessageForDeviceNotFound Error
swagger:response postDataMessageForDeviceNotFound
func NewPostDataMessageForDeviceNotFound ¶
func NewPostDataMessageForDeviceNotFound() *PostDataMessageForDeviceNotFound
NewPostDataMessageForDeviceNotFound creates PostDataMessageForDeviceNotFound with default headers values
func (*PostDataMessageForDeviceNotFound) WriteResponse ¶
func (o *PostDataMessageForDeviceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostDataMessageForDeviceOK ¶
type PostDataMessageForDeviceOK struct { /* In: Body */ Payload *models.MessageResponse `json:"body,omitempty"` }
PostDataMessageForDeviceOK Success
swagger:response postDataMessageForDeviceOK
func NewPostDataMessageForDeviceOK ¶
func NewPostDataMessageForDeviceOK() *PostDataMessageForDeviceOK
NewPostDataMessageForDeviceOK creates PostDataMessageForDeviceOK with default headers values
func (*PostDataMessageForDeviceOK) SetPayload ¶
func (o *PostDataMessageForDeviceOK) SetPayload(payload *models.MessageResponse)
SetPayload sets the payload to the post data message for device o k response
func (*PostDataMessageForDeviceOK) WithPayload ¶
func (o *PostDataMessageForDeviceOK) WithPayload(payload *models.MessageResponse) *PostDataMessageForDeviceOK
WithPayload adds the payload to the post data message for device o k response
func (*PostDataMessageForDeviceOK) WriteResponse ¶
func (o *PostDataMessageForDeviceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostDataMessageForDeviceParams ¶
type PostDataMessageForDeviceParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Device ID Required: true In: path */ DeviceID string /* Required: true In: body */ Message *models.Message }
PostDataMessageForDeviceParams contains all the bound params for the post data message for device operation typically these are obtained from a http.Request
swagger:parameters PostDataMessageForDevice
func NewPostDataMessageForDeviceParams ¶
func NewPostDataMessageForDeviceParams() PostDataMessageForDeviceParams
NewPostDataMessageForDeviceParams creates a new PostDataMessageForDeviceParams object
There are no default values defined in the spec.
func (*PostDataMessageForDeviceParams) BindRequest ¶
func (o *PostDataMessageForDeviceParams) 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 NewPostDataMessageForDeviceParams() beforehand.
type PostDataMessageForDeviceURL ¶
type PostDataMessageForDeviceURL struct { DeviceID string // contains filtered or unexported fields }
PostDataMessageForDeviceURL generates an URL for the post data message for device operation
func (*PostDataMessageForDeviceURL) Build ¶
func (o *PostDataMessageForDeviceURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostDataMessageForDeviceURL) BuildFull ¶
func (o *PostDataMessageForDeviceURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostDataMessageForDeviceURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostDataMessageForDeviceURL) SetBasePath ¶
func (o *PostDataMessageForDeviceURL) 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 (*PostDataMessageForDeviceURL) String ¶
func (o *PostDataMessageForDeviceURL) String() string
String returns the string representation of the path with query string
func (*PostDataMessageForDeviceURL) StringFull ¶
func (o *PostDataMessageForDeviceURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostDataMessageForDeviceURL) WithBasePath ¶
func (o *PostDataMessageForDeviceURL) WithBasePath(bp string) *PostDataMessageForDeviceURL
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 PostDataMessageForDeviceUnauthorized ¶
type PostDataMessageForDeviceUnauthorized struct { }
PostDataMessageForDeviceUnauthorized Unauthorized
swagger:response postDataMessageForDeviceUnauthorized
func NewPostDataMessageForDeviceUnauthorized ¶
func NewPostDataMessageForDeviceUnauthorized() *PostDataMessageForDeviceUnauthorized
NewPostDataMessageForDeviceUnauthorized creates PostDataMessageForDeviceUnauthorized with default headers values
func (*PostDataMessageForDeviceUnauthorized) WriteResponse ¶
func (o *PostDataMessageForDeviceUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files
¶
- get_control_message_for_device.go
- get_control_message_for_device_parameters.go
- get_control_message_for_device_responses.go
- get_control_message_for_device_urlbuilder.go
- get_data_message_for_device.go
- get_data_message_for_device_parameters.go
- get_data_message_for_device_responses.go
- get_data_message_for_device_urlbuilder.go
- post_control_message_for_device.go
- post_control_message_for_device_parameters.go
- post_control_message_for_device_responses.go
- post_control_message_for_device_urlbuilder.go
- post_data_message_for_device.go
- post_data_message_for_device_parameters.go
- post_data_message_for_device_responses.go
- post_data_message_for_device_urlbuilder.go