Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultAccessLevelAttributeKey = "access-level" DefaultAccessLevelAttributeValue = 0 )
Exported access level default values which application code may want to use.
View Source
const ElevatedAccessLevelAttributeValue = 1
ElevatedAccessLevelAttributeValue is the value that will be used when a request passes all checks for running in elevated access mode.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessLevel ¶
type AccessLevel struct { Resolve accessLevelResolver AttributeKey string }
AccessLevel provides logic for resolving the correct access level for a request given its bascule attributes.
Click to show internal directories.
Click to hide internal directories.