constants

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL