Documentation
¶
Overview ¶
Package middleware provides middleware for the notifications service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogging ¶
func NewLogging(notifier notifications.Notifier, logger *slog.Logger) notifications.Notifier
NewLogging adds logging facilities to the notifier.
func NewMetrics ¶
func NewMetrics(notifier notifications.Notifier, counter metrics.Counter, latency metrics.Histogram) notifications.Notifier
NewMetrics returns new notifier with metrics middleware.
func NewTracing ¶
func NewTracing(notifier notifications.Notifier, tracer trace.Tracer) notifications.Notifier
NewTracing returns a new notifier with tracing capabilities.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.