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