ATconsts

package
v0.0.0-...-574c6f2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Set-Cookie name prosperity
	COOKIE_NAME = "token"

	//Token is invalid in one month
	EXPIRE_TIME_TOKEN = 30 * 24 * 60 * 60

	TOKEN_SCRECT_KEY = "tokenemail"

	//Verify code is vaild in 20min
	VERIFYCODE_VALID_TIME = 1200

	VERIFYCODE_LENGTH = 4

	RATA_NUMBER_LIMITER = 2

	//Redis prefix string
	BLACK_LIST_PREFIX = "blacklist:"

	CONFIG_FILE_NAME = "Config.json"

	USER  = "user"
	ADMIN = "admin"
	ROOT  = "root"

	REDIS_VERIFY_CODE_SUFFIX = "verify_code:"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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