middleware

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package middleware contains the middleware for the invitations service. It is responsible for the following: - Logging - Metrics - Tracing

Index

Constants

This section is empty.

Variables

View Source
var ErrMemberExist = errors.New("user is already a member of the domain")

ErrMemberExist indicates that the user is already a member of the domain.

Functions

func AuthorizationMiddleware added in v0.15.0

func AuthorizationMiddleware(authz authz.Authorization, svc invitations.Service) invitations.Service

func Logging

func Logging(logger *slog.Logger, svc invitations.Service) invitations.Service

func Metrics

func Metrics(counter metrics.Counter, latency metrics.Histogram, svc invitations.Service) invitations.Service

func Tracing

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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