middleware

package
v0.18.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL