responses

package
v0.1.67 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceProfileResponse added in v0.1.67

type DeviceProfileResponse struct {
	common.BaseResponse `json:",inline"`
	Profile             dtos.DeviceProfile `json:"profile"`
}

DeviceProfileResponse defines the Response Content for GET DeviceProfile DTOs. This object and its properties correspond to the DeviceProfileResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-metadata/2.x#/DeviceProfileResponse

func NewDeviceProfileResponse added in v0.1.67

func NewDeviceProfileResponse(requestId string, message string, statusCode uint16, deviceProfile dtos.DeviceProfile) DeviceProfileResponse

func NewDeviceProfileResponseNoMessage added in v0.1.67

func NewDeviceProfileResponseNoMessage(requestId string, statusCode uint16, deviceProfile dtos.DeviceProfile) DeviceProfileResponse

type DeviceResponse added in v0.1.67

type DeviceResponse struct {
	common.BaseResponse `json:",inline"`
	Device              dtos.Device `json:"device"`
}

DeviceResponse defines the Response Content for GET Device DTOs. This object and its properties correspond to the DeviceResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-metadata/2.x#/DeviceResponse

func NewDeviceResponse added in v0.1.67

func NewDeviceResponse(requestId string, message string, statusCode uint16, device dtos.Device) DeviceResponse

func NewDeviceResponseNoMessage added in v0.1.67

func NewDeviceResponseNoMessage(requestId string, statusCode uint16, device dtos.Device) DeviceResponse

type DeviceServiceResponse added in v0.1.67

type DeviceServiceResponse struct {
	common.BaseResponse `json:",inline"`
	Service             dtos.DeviceService `json:"service"`
}

DeviceServiceResponse defines the Response Content for GET DeviceService DTOs. This object and its properties correspond to the DeviceServiceResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-metadata/2.x#/DeviceServiceResponse

func NewDeviceServiceResponse added in v0.1.67

func NewDeviceServiceResponse(requestId string, message string, statusCode uint16, deviceService dtos.DeviceService) DeviceServiceResponse

func NewDeviceServiceResponseNoMessage added in v0.1.67

func NewDeviceServiceResponseNoMessage(requestId string, statusCode uint16, deviceService dtos.DeviceService) DeviceServiceResponse

type EventCountResponse

type EventCountResponse struct {
	common.BaseResponse `json:",inline"`
	Count               uint32
	DeviceID            string `json:"deviceId"` // ID uniquely identifies a device
}

EventCountResponse defines the Response Content for GET event count DTO. This object and its properties correspond to the EventCountResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-data/2.x#/EventCountResponse

func NewEventCountResponse added in v0.1.67

func NewEventCountResponse(requestId string, message string, statusCode uint16, count uint32, deviceId string) EventCountResponse

func NewEventCountResponseNoMessage added in v0.1.67

func NewEventCountResponseNoMessage(requestId string, statusCode uint16, count uint32, deviceId string) EventCountResponse

type EventResponse

type EventResponse struct {
	common.BaseResponse `json:",inline"`
	Event               dtos.Event
}

EventResponse defines the Response Content for GET event DTOs. This object and its properties correspond to the EventResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-data/2.x#/EventResponse

func NewEventResponse added in v0.1.67

func NewEventResponse(requestId string, message string, statusCode uint16, event dtos.Event) EventResponse

func NewEventResponseNoMessage added in v0.1.67

func NewEventResponseNoMessage(requestId string, statusCode uint16, event dtos.Event) EventResponse

type ReadingCountResponse

type ReadingCountResponse struct {
	common.BaseResponse `json:",inline"`
	Count               uint32
}

ReadingCountResponse defines the Response Content for GET reading count DTO. This object and its properties correspond to the ReadingCountResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-data/2.x#/ReadingCountResponse

func NewReadingCountResponse added in v0.1.67

func NewReadingCountResponse(requestId string, message string, statusCode uint16, count uint32) ReadingCountResponse

func NewReadingCountResponseNoMessage added in v0.1.67

func NewReadingCountResponseNoMessage(requestId string, statusCode uint16, count uint32) ReadingCountResponse

type ReadingResponse

type ReadingResponse struct {
	common.BaseResponse `json:",inline"`
	Reading             dtos.BaseReading
}

ReadingResponse defines the Response Content for GET reading DTO. This object and its properties correspond to the ReadingResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-data/2.x#/ReadingResponse

func NewReadingResponse added in v0.1.67

func NewReadingResponse(requestId string, message string, statusCode uint16, reading dtos.BaseReading) ReadingResponse

func NewReadingResponseNoMessage added in v0.1.67

func NewReadingResponseNoMessage(requestId string, statusCode uint16, reading dtos.BaseReading) ReadingResponse

type UpdateEventPushedByChecksumResponse

type UpdateEventPushedByChecksumResponse struct {
	common.BaseResponse `json:",inline"`
	Checksum            string `json:"checksum"`
}

UpdateEventPushedByChecksumResponse defines the Response Content for PUT event as pushed DTO. This object and its properties correspond to the UpdateEventPushedByChecksumResponse object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-data/2.x#/UpdateEventPushedByChecksumResponse

func NewUpdateEventPushedByChecksumResponse added in v0.1.67

func NewUpdateEventPushedByChecksumResponse(requestId string, message string, statusCode uint16, checksum string) UpdateEventPushedByChecksumResponse

func NewUpdateEventPushedByChecksumResponseNoMessage added in v0.1.67

func NewUpdateEventPushedByChecksumResponseNoMessage(requestId string, statusCode uint16, checksum string) UpdateEventPushedByChecksumResponse

Jump to

Keyboard shortcuts

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