Documentation ¶
Overview ¶
Package middleware provides middleware for SuperMQ Groups service.
Index ¶
- func AuthorizationMiddleware(entityType string, svc groups.Service, repo groups.Repository, ...) (groups.Service, error)
- func LoggingMiddleware(svc groups.Service, logger *slog.Logger) groups.Service
- func MetricsMiddleware(svc groups.Service, counter metrics.Counter, latency metrics.Histogram) groups.Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizationMiddleware ¶
func AuthorizationMiddleware(entityType string, svc groups.Service, repo groups.Repository, authz smqauthz.Authorization, groupsOpPerm, rolesOpPerm map[svcutil.Operation]svcutil.Permission, extOpPerm map[svcutil.ExternalOperation]svcutil.Permission) (groups.Service, error)
AuthorizationMiddleware adds authorization to the clients service.
func LoggingMiddleware ¶
LoggingMiddleware adds logging facilities to the groups service.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.