Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEventReqToEventModels ¶
func AddEventReqToEventModels(addRequests []AddEventRequest) (events []models.Event)
AddEventReqToEventModels transforms the AddEventRequest DTO array to the Event model array
Types ¶
type AddEventRequest ¶
type AddEventRequest struct { common.BaseRequest `json:",inline"` Device string `json:"device" validate:"required"` Origin int64 `json:"origin" validate:"required"` Readings []dtos.BaseReading `json:"readings"` }
AddEventRequest defines the Request Content for POST event DTO. This object and its properties correspond to the AddEventRequest object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-data/2.x#/AddEventRequest
func (*AddEventRequest) UnmarshalJSON ¶
func (a *AddEventRequest) UnmarshalJSON(b []byte) error
func (AddEventRequest) Validate ¶
func (a AddEventRequest) Validate() error
Validate satisfies the Validator interface
type UpdateEventPushedByChecksumRequest ¶
type UpdateEventPushedByChecksumRequest struct { common.BaseRequest `json:",inline"` Checksum string `json:"checksum" validate:"required"` }
UpdateEventPushedByChecksumRequest defines the Request Content for PUT event as pushed DTO. This object and its properties correspond to the UpdateEventPushedByChecksumRequest object in the APIv2 specification: https://app.swaggerhub.com/apis-docs/EdgeXFoundry1/core-data/2.x#/UpdateEventPushedByChecksumRequest