writers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

README

Writers

Writers provide an implementation of various message writers. Message writers are services that normalize (in SenML format) Mainflux messages and store them in specific data store.

Writers are optional services and are treated as plugins. In order to run writer services, core services must be up and running. For more info on the platform core services with its dependencies, please check out the Docker Compose file.

For an in-depth explanation of the usage of writers, as well as thorough understanding of Mainflux, please check out the official documentation.

Documentation

Overview

Package writers contain the domain concept definitions needed to support Mainflux writer services functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(sub messaging.Subscriber, repo MessageRepository, transformer transformers.Transformer, queue string, subjectsCfgPath string, logger logger.Logger) error

Start method starts consuming messages received from NATS. This method transforms messages to SenML format before using MessageRepository to store them.

Types

type MessageRepository

type MessageRepository interface {
	// Save method is used to save published message. A non-nil
	// error is returned to indicate  operation failure.
	Save(messages ...senml.Message) error
}

MessageRepository specifies message writing API.

Directories

Path Synopsis
Package cassandra contains the domain concept definitions needed to support Mainflux Cassandra writer service.
Package cassandra contains the domain concept definitions needed to support Mainflux Cassandra writer service.
Package influxdb contains the domain concept definitions needed to support Mainflux InfluxDB writer service functionality.
Package influxdb contains the domain concept definitions needed to support Mainflux InfluxDB writer service functionality.
Package mongodb contains the domain concept definitions needed to support Mainflux MondoDB writer service functionality.
Package mongodb contains the domain concept definitions needed to support Mainflux MondoDB writer service functionality.
Package postgres contains repository implementations using Postgres as the underlying database.
Package postgres contains repository implementations using Postgres as the underlying database.

Jump to

Keyboard shortcuts

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