Documentation ¶
Overview ¶
Package middleware contains the middleware for the invitations service. It is responsible for the following: - Logging - Metrics - Tracing
Index ¶
- Variables
- func AuthorizationMiddleware(authz authz.Authorization, svc invitations.Service) invitations.Service
- func Logging(logger *slog.Logger, svc invitations.Service) invitations.Service
- func Metrics(counter metrics.Counter, latency metrics.Histogram, svc invitations.Service) invitations.Service
- func Tracing(svc invitations.Service, tracer trace.Tracer) invitations.Service
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.
Click to show internal directories.
Click to hide internal directories.