middleware

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizationMiddleware

func AuthorizationMiddleware(svc journal.Service, authz smqauthz.Authorization) journal.Service

AuthorizationMiddleware adds authorization to the journal service.

func LoggingMiddleware

func LoggingMiddleware(service journal.Service, logger *slog.Logger) journal.Service

LoggingMiddleware adds logging facilities to the adapter.

func MetricsMiddleware

func MetricsMiddleware(service journal.Service, counter metrics.Counter, latency metrics.Histogram) journal.Service

MetricsMiddleware returns new message repository with Save method wrapped to expose metrics.

func Tracing

func Tracing(svc journal.Service, tracer trace.Tracer) journal.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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