Documentation ¶
Overview ¶
Package middleware provides middleware for the journal service. This is logging, metrics, and tracing middleware.
Index ¶
- func AuthorizationMiddleware(svc journal.Service, authz smqauthz.Authorization) journal.Service
- func LoggingMiddleware(service journal.Service, logger *slog.Logger) journal.Service
- func MetricsMiddleware(service journal.Service, counter metrics.Counter, latency metrics.Histogram) journal.Service
- func Tracing(svc journal.Service, tracer trace.Tracer) journal.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizationMiddleware ¶
AuthorizationMiddleware adds authorization to the journal service.
func LoggingMiddleware ¶
LoggingMiddleware adds logging facilities to the adapter.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.