constants

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: AGPL-3.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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