io

package
v1.2.2-dev.40 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonReader

func NewJsonReader() jsonDeviceProfileReader

NewJsonReader creates a new instance of jsonReader.

Types

type DeviceProfileReader

type DeviceProfileReader interface {
	ReadAddDeviceProfileRequest(reader io.Reader, ctx *context.Context) ([]dto.AddDeviceProfileRequest, 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

Jump to

Keyboard shortcuts

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