# Functions
CheckAccess middleware to check if user can access the application.
CheckSpace check X-Space in header.
CheckSuperOrganisation checks weather organisation of user is super org or not.
CheckUser check X-User in header.
GetSpace return space ID.
GetSuperOrganisationID get superorganisation id from keto policy.
GetUser return user ID.
GormRequestID returns middleware to add request_id in gorm context.
ValidateAPIToken validates the API tokens from kavach server.
# Constants
SpaceIDKey is the key that holds the unique space ID in a request context.
UserIDKey is the key that holds the unique user ID in a request context.
# Structs
KetoPolicy model.
No description provided by the author
No description provided by the author
No description provided by the author