requests

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 18

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

Jump to

Keyboard shortcuts

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