constants

package
v0.0.0-...-5c91321 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 0 Imported by: 0

Documentation ยถ

Index ยถ

Constants ยถ

View Source
const (
	Happy         = "\\U0001F603"
	Smile         = "\\U0001F604"
	LoveEye       = "\\U0001F60D"
	StarkStarkEye = "\\U0001F60D"
	Cry           = "\uF622"
	Neutral       = "\\U0001F610" // ๐Ÿ˜ neutral face
	Confused      = "\\U0001F615" // ๐Ÿ˜• confused face
	Worried       = "\\U0001F61F" // ๐Ÿ˜Ÿ worried face
	Angry         = "\\U0001F620" // ๐Ÿ˜  angry face
	Rage          = "\\U0001F621" // ๐Ÿ˜ก pouting face
	Sweat         = "\\U0001F613" // ๐Ÿ˜“ face with open mouth and cold sweat
	Tired         = "\\U0001F62B" // ๐Ÿ˜ซ tired face
	Sleepy        = "\\U0001F62A" // ๐Ÿ˜ช sleepy face
	Unamused      = "\\U0001F612" // ๐Ÿ˜’ unamused face
	RollingEyes   = "\\U0001F644" // ๐Ÿ™„ face with rolling eyes
	Blush         = "\\U0001F60A" // ๐Ÿ˜Š blushing face
	Grin          = "\\U0001F601" // ๐Ÿ˜ grinning face with smiling eyes
	Joy           = "\\U0001F602" // ๐Ÿ˜‚ face with tears of joy
	SlightSmile   = "\\U0001F642" // ๐Ÿ™‚ slightly smiling face
	Wink          = "\\U0001F609" // ๐Ÿ˜‰ winking face
	Kiss          = "\\U0001F618" // ๐Ÿ˜˜ face blowing a kiss
	HeartEyes     = "\\U0001F60D" // ๐Ÿ˜ smiling face with heart-eyes
	StarStruck    = "\\U0001F929" // ๐Ÿคฉ star-struck
	Thinking      = "\\U0001F914" // ๐Ÿค” thinking face
	Yawning       = "\\U0001F970" // ๐Ÿฅฐ yawning face
	ThumbsUp      = "\\U0001F44D" // ๐Ÿ‘ thumbs up
	ThumbsDown    = "\\U0001F44E" // ๐Ÿ‘Ž thumbs down
	Victory       = "\\U0000270C" // โœŒ๏ธ victory hand
	CallMe        = "\\U0001F919" // ๐Ÿค™ call me hand
	Wave          = "\\U0001F44B" // ๐Ÿ‘‹ waving hand
	FoldedHands   = "\\U0001F64F" // ๐Ÿ™ folded hands
	Clap          = "\\U0001F44F" // ๐Ÿ‘ clapping hands
	RaisedHand    = "\\U0000270B" // โœ‹ raised hand
	OkHand        = "\\U0001F44C" // ๐Ÿ‘Œ OK hand
	Sun           = "\\U00002600" // โ˜€๏ธ sun
	Moon          = "\\U0001F319" // ๐ŸŒ™ crescent moon
	Cloud         = "\\U00002601" // โ˜๏ธ cloud
	Rain          = "\\U0001F327" // ๐ŸŒง rain
	Lightning     = "\\U000026A1" // โšก lightning
	Snowflake     = "\\U00002744" // โ„๏ธ snowflake
	Fire          = "\\U0001F525" // ๐Ÿ”ฅ fire
	Tree          = "\\U0001F332" // ๐ŸŒฒ evergreen tree
	Flower        = "\\U0001F490" // ๐Ÿ’ bouquet of flowers
	Dog           = "\\U0001F415" // ๐Ÿ• dog face
	Cat           = "\\U0001F408" // ๐Ÿˆ cat face
	Monkey        = "\\U0001F412" // ๐Ÿ’ monkey face
	Lion          = "\\U0001F981" // ๐Ÿฆ lion face
	Tiger         = "\\U0001F405" // ๐Ÿ… tiger face
	Elephant      = "\\U0001F418" // ๐Ÿ˜ elephant
	Panda         = "\\U0001F43C" // ๐Ÿผ panda face
	Horse         = "\\U0001F40E" // ๐ŸŽ horse face
	Cow           = "\\U0001F404" // ๐Ÿ„ cow face
	Fish          = "\\U0001F41F" // ๐ŸŸ fish
	Pizza         = "\\U0001F355" // ๐Ÿ• slice of pizza
	Burger        = "\\U0001F354" // ๐Ÿ” hamburger
	Sushi         = "\\U0001F363" // ๐Ÿฃ sushi
	Taco          = "\\U0001F32E" // ๐ŸŒฎ taco
	Hotdog        = "\\U0001F32D" // ๐Ÿญ hot dog
	Cake          = "\\U0001F370" // ๐Ÿฐ shortcake
	IceCream      = "\\U0001F366" // ๐Ÿฆ frozen dessert
	Coffee        = "\\U00002615" // โ˜• hot beverage
	Beer          = "\\U0001F37A" // ๐Ÿบ beer mug
	WineGlass     = "\\U0001F377" // ๐Ÿท wine glass
	Computer      = "\\U0001F4BB" // ๐Ÿ’ป personal computer
	Mobile        = "\\U0001F4F1" // ๐Ÿ“ฑ mobile phone
	Camera        = "\\U0001F4F7" // ๐Ÿ“ท camera
	Headphones    = "\\U0001F3A7" // ๐ŸŽง headphones
	Tools         = "\\U0001F6E0" // ๐Ÿ›  hammer and wrench
	Hammer        = "\\U0001F528" // ๐Ÿ”จ hammer
	Wrench        = "\\U0001F527" // ๐Ÿ”ง wrench
	Gear          = "\\U00002699" // โš™ gear
	Microscope    = "\\U0001F52C" // ๐Ÿ”ฌ microscope
	Rocket        = "\\U0001F680" // ๐Ÿš€ rocket
	Checkmark     = "\\U00002705" // โœ… check mark button
	CrossMark     = "\\U0000274C" // โŒ cross mark
	Info          = "\\U00002139" // โ„น information source
	Warning       = "\\U000026A0" // โš  warning sign
	NoEntry       = "\\U0001F6AB" // ๐Ÿšซ no entry sign
	Bell          = "\\U0001F514" // ๐Ÿ”” bell
	Lock          = "\\U0001F512" // ๐Ÿ”’ lock
	Unlock        = "\\U0001F513" // ๐Ÿ”“ unlocked

)
View Source
const (
	//SigUserLogin: user *User, c *gin.Context
	SigUserLogin = "user.login"
	//SigUserLogout: user *User, c *gin.Context
	SigUserLogout = "user.logout"
	//SigUserCreate: user *User, c *gin.Context
	SigUserCreate = "user.create"
	//SigUserVerifyEmail: user *User, hash, clientIp, userAgent string
	SigUserVerifyEmail = "user.verifyemail"
	//SigUserResetPassword: user *User, hash, clientIp, userAgent string
	SigUserResetPassword = "user.resetpassword"
	//SigUserChangeEmail: user *User, hash, clientIp, userAgent, newEmail string
	SigUserChangeEmail = "user.changeemail"
	//SigUserChangeEmailDone: user *User, oldEmail, newEmail string
	SigUserChangeEmailDone = "user.changeemaildone"
)
View Source
const (
	RoleSuperAdmin = "superadmin" // ่ถ…็บง็ฎก็†ๅ‘˜
	RoleAdmin      = "admin"      // ็ฎก็†ๅ‘˜
	RoleUser       = "user"       // ๆ™ฎ้€š็”จๆˆท
)

่ง’่‰ฒๅธธ้‡

View Source
const AssetsField = "_lingecho_assets"
View Source
const DbField = "_lingecho_db"
View Source
const ENV_CONFIG_CACHE_EXPIRED = "CONFIG_CACHE_EXPIRED"

Default Value: 10s

View Source
const ENV_CONFIG_CACHE_SIZE = "CONFIG_CACHE_SIZE"

Default Value: 1024

View Source
const ENV_DB_DRIVER = "DB_DRIVER"

DB

View Source
const ENV_DSN = "DSN"
View Source
const ENV_SESSION_EXPIRE_DAYS = "SESSION_EXPIRE_DAYS"
View Source
const ENV_SESSION_FIELD = "SESSION_FIELD"

Gin session field name

View Source
const ENV_SESSION_SECRET = "SESSION_SECRET"

Session

View Source
const ENV_STATIC_PREFIX = "STATIC_PREFIX"
View Source
const ENV_STATIC_ROOT = "STATIC_ROOT"
View Source
const GroupField = "_lingecho_gid"
View Source
const KEY_ALIYUN_CENSOR_ACCESS_KEY_ID = "ALIYUN_CENSOR_ACCESS_KEY_ID"

Alibaba Cloud Content Moderation

View Source
const KEY_ALIYUN_CENSOR_ACCESS_KEY_SECRET = "ALIYUN_CENSOR_ACCESS_KEY_SECRET"
View Source
const KEY_ALIYUN_CENSOR_GREEN_ENDPOINT = "ALIYUN_CENSOR_GREEN_ENDPOINT"
View Source
const KEY_AUTH_TOKEN_EXPIRED = "AUTH_TOKEN_EXPIRED"
View Source
const KEY_CENSOR_AUDIO_KIND = "CENSOR_AUDIO_KIND"
View Source
const KEY_CENSOR_ENABLED = "CENSOR_ENABLED"

Content Moderation Configuration

View Source
const KEY_CENSOR_IMAGE_KIND = "CENSOR_IMAGE_KIND"
View Source
const KEY_CENSOR_TEXT_KIND = "CENSOR_TEXT_KIND"
View Source
const KEY_CENSOR_VIDEO_KIND = "CENSOR_VIDEO_KIND"
View Source
const KEY_COS_BUCKET_NAME = "COS_BUCKET_NAME"
View Source
const KEY_COS_REGION = "COS_REGION"

Storage Configuration - Tencent Cloud COS

View Source
const KEY_COS_SECRET_ID = "COS_SECRET_ID"
View Source
const KEY_COS_SECRET_KEY = "COS_SECRET_KEY"
View Source
const KEY_MAIL_FROM = "MAIL_FROM"
View Source
const KEY_MAIL_HOST = "MAIL_HOST"

Mail Configuration

View Source
const KEY_MAIL_PASSWORD = "MAIL_PASSWORD"
View Source
const KEY_MAIL_PORT = "MAIL_PORT"
View Source
const KEY_MAIL_USERNAME = "MAIL_USERNAME"
View Source
const KEY_MINIO_ACCESS_KEY = "MINIO_ACCESS_KEY"
View Source
const KEY_MINIO_BUCKET = "MINIO_BUCKET"
View Source
const KEY_MINIO_ENDPOINT = "MINIO_ENDPOINT"

Storage Configuration - MinIO

View Source
const KEY_MINIO_PUBLIC_BASE = "MINIO_PUBLIC_BASE"
View Source
const KEY_MINIO_SECRET_KEY = "MINIO_SECRET_KEY"
View Source
const KEY_MINIO_USE_SSL = "MINIO_USE_SSL"
View Source
const KEY_OSS_ACCESS_KEY_ID = "OSS_ACCESS_KEY_ID"
View Source
const KEY_OSS_ACCESS_KEY_SECRET = "OSS_ACCESS_KEY_SECRET"
View Source
const KEY_OSS_BUCKET_NAME = "OSS_BUCKET_NAME"
View Source
const KEY_OSS_ENDPOINT = "OSS_ENDPOINT"

Storage Configuration - Alibaba Cloud OSS

View Source
const KEY_QCLOUD_CENSOR_REGION = "QCLOUD_CENSOR_REGION"
View Source
const KEY_QCLOUD_CENSOR_SECRET_ID = "QCLOUD_CENSOR_SECRET_ID"

Tencent Cloud Content Moderation

View Source
const KEY_QCLOUD_CENSOR_SECRET_KEY = "QCLOUD_CENSOR_SECRET_KEY"
View Source
const KEY_QINIU_ACCESS_KEY = "QINIU_ACCESS_KEY"

Storage Configuration - Qiniu Cloud

View Source
const KEY_QINIU_BUCKET = "QINIU_BUCKET"
View Source
const KEY_QINIU_CENSOR_ACCESS_KEY = "QINIU_CENSOR_ACCESS_KEY"

Qiniu Content Moderation

View Source
const KEY_QINIU_CENSOR_SECRET_KEY = "QINIU_CENSOR_SECRET_KEY"
View Source
const KEY_QINIU_DOMAIN = "QINIU_DOMAIN"
View Source
const KEY_QINIU_PRIVATE = "QINIU_PRIVATE"
View Source
const KEY_QINIU_REGION = "QINIU_REGION"
View Source
const KEY_QINIU_SECRET_KEY = "QINIU_SECRET_KEY"
View Source
const KEY_S3_ACCESS_KEY_ID = "S3_ACCESS_KEY_ID"
View Source
const KEY_S3_BUCKET_NAME = "S3_BUCKET_NAME"
View Source
const KEY_S3_ENDPOINT = "S3_ENDPOINT"
View Source
const KEY_S3_REGION = "S3_REGION"

Storage Configuration - AWS S3

View Source
const KEY_S3_SECRET_ACCESS_KEY = "S3_SECRET_ACCESS_KEY"
View Source
const KEY_SITE_ADMIN = "SITE_ADMIN"
View Source
const KEY_SITE_DESCRIPTION = "SITE_DESCRIPTION"
View Source
const KEY_SITE_GA = "SITE_GA"
View Source
const KEY_SITE_KEYWORDS = "SITE_KEYWORDS"
View Source
const KEY_SITE_LOGO_URL = "SITE_LOGO_URL"
View Source
const KEY_SITE_NAME = "SITE_NAME"
View Source
const KEY_SITE_TERMS_URL = "SITE_TERMS_URL"
View Source
const KEY_SITE_URL = "SITE_URL"
View Source
const KEY_STORAGE_KIND = "STORAGE_KIND"
View Source
const KEY_USER_ACTIVATED = "USER_ACTIVATED"
View Source
const KEY_VERIFY_EMAIL_EXPIRED = "VERIFY_EMAIL_EXPIRED"
View Source
const (
	SigInitSystemConfig = "system.init"
)
View Source
const TemplatesField = "_lingecho_templates"
View Source
const TzField = "_lingecho_tz"
View Source
const UserField = "_lingecho_uid"

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