2020-08-22 06:08:30 +02:00
|
|
|
package utils
|
|
|
|
|
|
|
|
// ContextKey represents a context key
|
|
|
|
type ContextKey string
|
|
|
|
|
|
|
|
const (
|
|
|
|
// UserIDKey is the key for the user id of the authenticated user
|
|
|
|
UserIDKey ContextKey = "userID"
|
2020-10-21 01:52:09 +02:00
|
|
|
// ReqIDKey is the unique ID key for current request
|
|
|
|
ReqIDKey ContextKey = "reqID"
|
2020-08-22 06:08:30 +02:00
|
|
|
//RestrictedModeKey is the key for whether the authenticated user only has access to install route
|
|
|
|
RestrictedModeKey ContextKey = "restricted_mode"
|
|
|
|
// OrgRoleKey is the key for the organization role code of the authenticated user
|
|
|
|
OrgRoleKey ContextKey = "org_role"
|
|
|
|
)
|