cloud-event-transforms

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

README

Cloud-Event-Transform

Cloud-Event-Transforms is an example extension of the pkg/transforms/conversion found in the App Functions SDK to illustrate the transformation of Edgex events to cloud-events and back.

Overview

In this example we start off by using the included transforms.NewConversion().TransformToCloudEvent function to transform an Edgex Event into a cloud-event. Then in the following app function we send the cloud-event, then transform it back to an Edgex Event using transforms.NewConversion().TransformFromCloudEvent and print out the result.

You can trigger this pipeline by using the http trigger from a tool like postman and sending an edgex event in the JSON body as payload.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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