yggdrasil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GetControlMessageForDeviceForbiddenCode int = 403

GetControlMessageForDeviceForbiddenCode is the HTTP code returned for type GetControlMessageForDeviceForbidden

View Source
const GetControlMessageForDeviceInternalServerErrorCode int = 500

GetControlMessageForDeviceInternalServerErrorCode is the HTTP code returned for type GetControlMessageForDeviceInternalServerError

View Source
const GetControlMessageForDeviceNotFoundCode int = 404

GetControlMessageForDeviceNotFoundCode is the HTTP code returned for type GetControlMessageForDeviceNotFound

View Source
const GetControlMessageForDeviceOKCode int = 200

GetControlMessageForDeviceOKCode is the HTTP code returned for type GetControlMessageForDeviceOK

View Source
const GetControlMessageForDeviceUnauthorizedCode int = 401

GetControlMessageForDeviceUnauthorizedCode is the HTTP code returned for type GetControlMessageForDeviceUnauthorized

View Source
const GetDataMessageForDeviceForbiddenCode int = 403

GetDataMessageForDeviceForbiddenCode is the HTTP code returned for type GetDataMessageForDeviceForbidden

View Source
const GetDataMessageForDeviceInternalServerErrorCode int = 500

GetDataMessageForDeviceInternalServerErrorCode is the HTTP code returned for type GetDataMessageForDeviceInternalServerError

View Source
const GetDataMessageForDeviceNotFoundCode int = 404

GetDataMessageForDeviceNotFoundCode is the HTTP code returned for type GetDataMessageForDeviceNotFound

View Source
const GetDataMessageForDeviceOKCode int = 200

GetDataMessageForDeviceOKCode is the HTTP code returned for type GetDataMessageForDeviceOK

View Source
const GetDataMessageForDeviceUnauthorizedCode int = 401

GetDataMessageForDeviceUnauthorizedCode is the HTTP code returned for type GetDataMessageForDeviceUnauthorized

View Source
const PostControlMessageForDeviceForbiddenCode int = 403

PostControlMessageForDeviceForbiddenCode is the HTTP code returned for type PostControlMessageForDeviceForbidden

View Source
const PostControlMessageForDeviceInternalServerErrorCode int = 500

PostControlMessageForDeviceInternalServerErrorCode is the HTTP code returned for type PostControlMessageForDeviceInternalServerError

View Source
const PostControlMessageForDeviceNotFoundCode int = 404

PostControlMessageForDeviceNotFoundCode is the HTTP code returned for type PostControlMessageForDeviceNotFound

View Source
const PostControlMessageForDeviceOKCode int = 200

PostControlMessageForDeviceOKCode is the HTTP code returned for type PostControlMessageForDeviceOK

View Source
const PostControlMessageForDeviceUnauthorizedCode int = 401

PostControlMessageForDeviceUnauthorizedCode is the HTTP code returned for type PostControlMessageForDeviceUnauthorized

View Source
const PostDataMessageForDeviceAlreadyReportedCode int = 208

PostDataMessageForDeviceAlreadyReportedCode is the HTTP code returned for type PostDataMessageForDeviceAlreadyReported

View Source
const PostDataMessageForDeviceBadRequestCode int = 400

PostDataMessageForDeviceBadRequestCode is the HTTP code returned for type PostDataMessageForDeviceBadRequest

View Source
const PostDataMessageForDeviceForbiddenCode int = 403

PostDataMessageForDeviceForbiddenCode is the HTTP code returned for type PostDataMessageForDeviceForbidden

View Source
const PostDataMessageForDeviceInternalServerErrorCode int = 500

PostDataMessageForDeviceInternalServerErrorCode is the HTTP code returned for type PostDataMessageForDeviceInternalServerError

View Source
const PostDataMessageForDeviceNotFoundCode int = 404

PostDataMessageForDeviceNotFoundCode is the HTTP code returned for type PostDataMessageForDeviceNotFound

View Source
const PostDataMessageForDeviceOKCode int = 200

PostDataMessageForDeviceOKCode is the HTTP code returned for type PostDataMessageForDeviceOK

View Source
const PostDataMessageForDeviceUnauthorizedCode int = 401

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL