transformers

package
v0.0.0-...-f17446d Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Message Transformers

A transformer service consumes events published by Mainflux adapters (such as MQTT and HTTP adapters) and transforms them to an arbitrary message format. A transformer can be imported as a standalone package and used for message transformation on the consumer side.

Mainflux SenML transformer is an example of Transformer service for SenML messages.

Mainflux writers are using a standalone SenML transformer to preprocess messages before storing them.

Documentation

Overview

Package transformers contains the domain concept definitions needed to support Mainflux transformer services functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

type Transformer interface {
	// Transform Mainflux message to any other format.
	Transform(msg messaging.Message) (interface{}, error)
}

Transformer specifies API form Message transformer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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