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

Documentation

Overview

Package middleware provides authorization, logging, metrics and tracing middleware for SuperMQ Domains service.

For more details about tracing instrumentation for SuperMQ refer to the documentation at https://docs.supermq.absmach.eu/tracing/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthorization added in v0.18.2

NewAuthorization adds authorization to the groups service.

func NewLogging added in v0.18.2

func NewLogging(svc groups.Service, logger *slog.Logger) groups.Service

NewLogging adds logging facilities to the groups service.

func NewMetrics added in v0.18.2

func NewMetrics(svc groups.Service, counter metrics.Counter, latency metrics.Histogram) groups.Service

NewMetrics instruments policies service by tracking request count and latency.

func NewTracing added in v0.18.2

func NewTracing(svc groups.Service, tracer trace.Tracer) groups.Service

NewTracing returns a new groups service 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