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.
Click to show internal directories.
Click to hide internal directories.