package
0.0.0-20241112125757-779aa9ab4555
Repository: https://github.com/bcc-code/bcc-media-platform.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetAcceptedLanguagesFromCtx as sent by the user.
GetFromCtx gets the user stored in the context by the middleware.
GetLanguagesFromCtx as provided in the request.
GetProfileFromCtx returns the current profile.
GetProfilesFromCtx returns the current profile.
GetRolesFromCtx returns the roles stored in context.
ValidateAccess returns error if user in context does not have access to the specified item.

# Constants

Various hardcoded keys.
Various hardcoded keys.
Various hardcoded keys.
Various hardcoded keys.
Various hardcoded keys.
CtxRoles context key for roles.
Various hardcoded keys.
All well-known roles as used in the DB.
All well-known roles as used in the DB.
All well-known roles as used in the DB.
All well-known roles as used in the DB.

# Variables

AgeGroups contains the different age groups keyed by the minimum age.
Sentinel errors.
Sentinel errors.
Sentinel errors.

# Structs

CheckConditions defines which conditions that should be checked.