consts

package
v0.0.0-...-9b663ca Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AliasVideo = "video"
	ESLayout   = "2006.01.02-15.04.05"
)

别名

View Source
const (
	PrefixUser              = "USER"
	PrefixVideoDataUser     = "VIDEO_DATA:USER"
	PrefixVideoDataAnime    = "VIDEO_DATA:ANIME"
	PrefixVideoDataEpisode  = "VIDEO_DATA:EPISODE"
	PrefixVideoDataDuration = "VIDEO_DATA:DURATION"
	PrefixArticleHit        = "ARTICLE_HIT"
)

redis前缀

View Source
const (
	RoleAdmin   = 1
	RoleManager = 2
	RoleUser    = 3
)

角色

View Source
const VideoMapping = `` /* 2878-byte string literal not displayed */

VideoMapping ..

Variables

View Source
var (
	JWTtAccessSecret = env.GetEnvStr("JWT_ACCESS_SECRET", "JWT_ACCESS_SECRET")
	JWTRefreshSecret = env.GetEnvStr("JWT_REFRESH_SECRET", "JWT_REFRESH_SECRET")
	JWTIssuer        = env.GetEnvStr("JWT_ISSUER", "domain.local")
)

环境变量

Functions

func GetDeviceAccessKey

func GetDeviceAccessKey(id uint) string

GetDeviceAccessKey ..

func GetDeviceSecretKey

func GetDeviceSecretKey() string

GetDeviceSecretKey ..

Types

This section is empty.

Jump to

Keyboard shortcuts

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