Documentation
¶
Overview ¶
Package constants provides static aliases when an value from an enum is required
Index ¶
Constants ¶
View Source
const ( Accounts = "account" Menus = "menu" Domain = "domain" )
These are constants to have an single point to look up static items
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountConstant ¶ added in v0.4.1
type AccountConstant string
AccountConstant is an type for easier linting.
const ( // AccountID is the ID of the session. Prefferably it should be an UUIDv4 to mitigate security errors. AccountID AccountConstant = "jti" // AccountAnon is to identify Sessions as Anonymous sessions. AccountAnon AccountConstant = "anon" // AccountUser is an attribute that identifies the user with an string that is unique for the user, for Example the username. AccountUser AccountConstant = "uid" )
These are Constants to save specific attributes in single points of use.
Click to show internal directories.
Click to hide internal directories.