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 ¶
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(mainflux.Message) error }
MessageRepository specifies message writing API.
func LoggingMiddleware ¶
func LoggingMiddleware(svc MessageRepository, logger log.Logger) MessageRepository
LoggingMiddleware adds logging facilities to the adapter.
func MetricsMiddleware ¶
func MetricsMiddleware(repo MessageRepository, counter metrics.Counter, latency metrics.Histogram) MessageRepository
MetricsMiddleware returns new message repository with Save method wrapped to expose metrics.
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. |
Click to show internal directories.
Click to hide internal directories.