middleware

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizationMiddleware

func AuthorizationMiddleware(
	svc channels.Service,
	repo channels.Repository,
	authz smqauthz.Authorization,
	channelsOpPerm, rolesOpPerm map[svcutil.Operation]svcutil.Permission,
	extOpPerm map[svcutil.ExternalOperation]svcutil.Permission,
	callout callout.Callout,
) (channels.Service, error)

AuthorizationMiddleware adds authorization to the channels service.

func LoggingMiddleware

func LoggingMiddleware(svc channels.Service, logger *slog.Logger) channels.Service

func MetricsMiddleware

func MetricsMiddleware(svc channels.Service, counter metrics.Counter, latency metrics.Histogram) channels.Service

MetricsMiddleware returns a new metrics middleware wrapper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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