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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonNotificationReader

func NewJsonNotificationReader() jsonNotificationReader

NewJsonNotificationReader creates a new instance of jsonNotificationReader

func NewJsonSubscriptionReader

func NewJsonSubscriptionReader() jsonSubscriptionReader

NewJsonSubscriptionReader creates a new instance of jsonSubscriptionReader

Types

type NotificationReader

type NotificationReader interface {
	ReadAddNotificationRequest(reader io.Reader) ([]dtoRequest.AddNotificationRequest, errors.EdgeX)
}

NotificationReader unmarshals a request body into an array of Notification type

func NewNotificationRequestReader

func NewNotificationRequestReader() NotificationReader

NewNotificationRequestReader returns a BodyReader capable of processing the request body

type SubscriptionReader

type SubscriptionReader interface {
	ReadAddSubscriptionRequest(reader io.Reader) ([]dtoRequest.AddSubscriptionRequest, errors.EdgeX)
	ReadUpdateSubscriptionRequest(reader io.Reader) ([]dtoRequest.UpdateSubscriptionRequest, errors.EdgeX)
}

SubscriptionReader unmarshals a request body into an array of Subscription type

func NewSubscriptionRequestReader

func NewSubscriptionRequestReader() SubscriptionReader

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