Documentation ¶
Index ¶
- func LoggingMiddleware(svc readers.MessageRepository, logger logger.Logger) readers.MessageRepository
- func MakeHandler(svc readers.MessageRepository, tc mainflux.ThingsServiceClient, svcName string) http.Handler
- func MetricsMiddleware(svc readers.MessageRepository, counter metrics.Counter, ...) readers.MessageRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
func LoggingMiddleware(svc readers.MessageRepository, logger logger.Logger) readers.MessageRepository
LoggingMiddleware adds logging facilities to the core service.
func MakeHandler ¶
func MakeHandler(svc readers.MessageRepository, tc mainflux.ThingsServiceClient, svcName string) http.Handler
MakeHandler returns a HTTP handler for API endpoints.
func MetricsMiddleware ¶
func MetricsMiddleware(svc readers.MessageRepository, counter metrics.Counter, latency metrics.Histogram) readers.MessageRepository
MetricsMiddleware instruments core service by tracking request count and latency.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.