transforms

package
v0.0.0-...-f445767 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conversion

type Conversion struct {
}

Conversion houses various conversion

func NewConversion

func NewConversion() Conversion

NewConversion creates, initializes and returns a new instance of Conversion

func (Conversion) TransformFromCloudEvent

func (f Conversion) TransformFromCloudEvent(edgexcontext *appcontext.Context, params ...interface{}) (continuePipeline bool, stringType interface{})

TransformFromCloudEvent will transform a Cloud Event to an Edgex models.Event It will return an error and stop the pipeline if a non-edgex event is received or if no data is received.

func (Conversion) TransformToCloudEvent

func (f Conversion) TransformToCloudEvent(edgexcontext *appcontext.Context, params ...interface{}) (continuePipeline bool, stringType interface{})

TransformToCloudEvent will transform a models.Event to a Cloud Event It will return an error and stop the pipeline if a non-edgex event is received or if no data is received.

Jump to

Keyboard shortcuts

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