Documentation ¶
Overview ¶
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
func LoggingMiddleware(consumer consumers.BlockingConsumer, logger *slog.Logger) consumers.BlockingConsumer
LoggingMiddleware adds logging facilities to the adapter.
func MakeHandler ¶
MakeHandler returns a HTTP API handler with health check and metrics.
func MetricsMiddleware ¶
func MetricsMiddleware(consumer consumers.BlockingConsumer, counter metrics.Counter, latency metrics.Histogram) consumers.BlockingConsumer
MetricsMiddleware returns new message repository with Save method wrapped to expose metrics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.