Documentation
¶
Index ¶
- func AuthorizationMiddleware(svc channels.Service, repo channels.Repository, authz smqauthz.Authorization, ...) (channels.Service, error)
- func LoggingMiddleware(svc channels.Service, logger *slog.Logger) channels.Service
- func MetricsMiddleware(svc channels.Service, counter metrics.Counter, latency metrics.Histogram) channels.Service
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) (channels.Service, error)
AuthorizationMiddleware adds authorization to the channels service.
func LoggingMiddleware ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.