io

package
v1.3.1-dev.18.0...-398431f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonDeviceReader

func NewJsonDeviceReader() jsonDeviceReader

NewJsonDeviceReader creates a new instance of jsonDeviceReader

func NewJsonDeviceServiceReader

func NewJsonDeviceServiceReader() jsonDeviceServiceReader

NewJsonDeviceServiceReader creates a new instance of jsonDeviceServiceReader

func NewJsonProvisionWatcherReader

func NewJsonProvisionWatcherReader() jsonProvisionWatcherReader

NewJsonProvisionWatcherReader creates a new instance of jsonProvisionWatcherReader

func NewJsonReader

func NewJsonReader() jsonDeviceProfileReader

NewJsonReader creates a new instance of jsonReader.

Types

type DeviceProfileReader

type DeviceProfileReader interface {
	ReadDeviceProfileRequest(reader io.Reader) ([]dto.DeviceProfileRequest, errors.EdgeX)
	ReadDeviceProfileYaml(r *http.Request) (dtos.DeviceProfile, errors.EdgeX)
}

DeviceProfileReader unmarshals a request body into an DeviceProfile type

func NewDeviceProfileRequestReader

func NewDeviceProfileRequestReader() DeviceProfileReader

NewRequestReader returns a BodyReader capable of processing the request body

type DeviceReader

type DeviceReader interface {
	ReadAddDeviceRequest(reader io.Reader) ([]dtoRequest.AddDeviceRequest, errors.EdgeX)
	ReadUpdateDeviceRequest(reader io.Reader) ([]dtoRequest.UpdateDeviceRequest, errors.EdgeX)
}

DeviceReader unmarshals a request body into an array of Device type

func NewDeviceRequestReader

func NewDeviceRequestReader() DeviceReader

NewRequestReader returns a BodyReader capable of processing the request body

type DeviceServiceReader

type DeviceServiceReader interface {
	ReadAddDeviceServiceRequest(reader io.Reader) ([]dtoRequest.AddDeviceServiceRequest, errors.EdgeX)
	ReadUpdateDeviceServiceRequest(reader io.Reader) ([]dtoRequest.UpdateDeviceServiceRequest, errors.EdgeX)
}

DeviceServiceReader unmarshals a request body into an array of DeviceService type

func NewDeviceServiceRequestReader

func NewDeviceServiceRequestReader() DeviceServiceReader

NewRequestReader returns a BodyReader capable of processing the request body

type ProvisionWatcherReader

type ProvisionWatcherReader interface {
	ReadAddProvisionWatcherRequest(reader io.Reader) ([]dtoRequest.AddProvisionWatcherRequest, errors.EdgeX)
	ReadUpdateProvisionWatcherRequest(reader io.Reader) ([]dtoRequest.UpdateProvisionWatcherRequest, errors.EdgeX)
}

ProvisionWatcherReader unmarshals a request body into an array of ProvisionWatcher type

func NewProvisionWatcherRequestReader

func NewProvisionWatcherRequestReader() ProvisionWatcherReader

NewProvisionWatcherRequestReader returns a BodyReader capable of processing the request body

Jump to

Keyboard shortcuts

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