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.
Click to show internal directories.
Click to hide internal directories.