package
0.0.0-20240412161927-396e8972d311
Repository: https://github.com/mihnea1711/restinmedicine.git
Documentation: pkg.go.dev

# Functions

AdminAndDoctorMiddleware is a middleware function that allows admin and doctor access.
AdminAndPatientMiddleware is a middleware function that allows admin and patient access.
AdminOnlyMiddleware is a middleware function that allows only admin access.
AllRolesMiddleware is a middleware function that allows admin, doctor, and patient access.
BlacklistMiddleware is a middleware function that takes an idmClient as a parameter and checks if the Token's jwt is in the blacklist or not.
extractJWTFromHeader extracts the JWT token from the Authorization header.
No description provided by the author
RoleMiddleware is a middleware function that checks if the user has any of the required roles.

# Structs

No description provided by the author