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: 15 Imported by: 0

Documentation

Overview

Package middleware provides middleware for the alarms service. This is logging, metrics, and tracing middleware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorizationMiddleware

func NewAuthorizationMiddleware(svc alarms.Service, authz smqauthz.Authorization) alarms.Service

func NewLoggingMiddleware

func NewLoggingMiddleware(logger *slog.Logger, service alarms.Service) alarms.Service

func NewMetricsMiddleware

func NewMetricsMiddleware(counter metrics.Counter, latency metrics.Histogram, service alarms.Service) alarms.Service

func NewTracingMiddleware

func NewTracingMiddleware(tracer trace.Tracer, svc alarms.Service) alarms.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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