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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSMQTTSender

func NewAWSMQTTSender(logging logger.LoggingClient, config *AWSMQTTConfig) *sdkTransforms.MQTTSender

NewAWSMQTTSender return a mqtt sender capable of sending the event's value to the given MQTT broker

Types

type AWSMQTTConfig

type AWSMQTTConfig struct {
	MQTTConfig     sdkTransforms.MqttConfig
	IoTHost        string
	IoTPort        string
	IoTDevice      string
	IoTTopic       string
	DeviceNames    string
	PersistOnError bool
	KeyCertPair    *sdkTransforms.KeyCertPair
}

AWSMQTTConfig holds AWS IoT specific information

func LoadAWSMQTTConfig

func LoadAWSMQTTConfig(sdk *appsdk.AppFunctionsSDK) (*AWSMQTTConfig, error)

LoadAWSMQTTConfig Loads the mqtt configuration necessary to connect to AWS cloud

type Conversion

type Conversion struct {
}

Conversion Struct

func NewConversion

func NewConversion() Conversion

NewConversion returns a conversion struct

func (Conversion) TransformToAWS

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

TransformToAWS converts the event into AWS readable format

Jump to

Keyboard shortcuts

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