Documentation
¶
Index ¶
Constants ¶
View Source
const ( Number = "0123456789" // Numbers Lowercase = "abcdefghijklmnopqrstuvwxyz" // Lowercase letters Uppercase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" // Uppercase letters Symbol = "!#$%&()*+,-./:;<=>?@[]^_`{|}~" // Symbols NumLower = Number + Lowercase // Numbers + Lowercase letters NumUpper = Number + Uppercase // Numbers + Uppercase letters LowerUpper = Lowercase + Uppercase // Lowercase + Uppercase letters NumLowerUpper = Number + Lowercase + Uppercase // Numbers + Lowercase + Uppercase letters All = NumLowerUpper + Symbol // Combination of all )
Character sets
View Source
const ( // SocialWechat Wechat SocialWechat = "wechat" // SocialQQ QQ SocialQQ = "qq" // SocialWeibo Weibo SocialWeibo = "weibo" // SocialGithub Github SocialGithub = "github" )
View Source
const AuthorizationKey string = "Authorization"
AuthorizationKey Authorization header key
View Source
const BearerKey string = "Bearer "
BearerKey Bearer token prefix
View Source
const GinContextKey = "gin-context"
GinContextKey gin context key
View Source
const PrimaryKey = NumLowerUpper
PrimaryKey is the character set used for primary keys
View Source
const PrimaryKeySize = 16
PrimaryKeySize is the length of the primary key
View Source
const TenantKey string = "x-md-tid"
TenantKey global tenant id TenantKey = XMdDomainKey
View Source
const TokenKey string = "x-md-token"
TokenKey global token
View Source
const TotalKey string = "x-md-total"
TotalKey result total with response
View Source
const TraceKey string = "x-md-trace"
TraceKey global trace id
View Source
const UserKey string = "x-md-uid"
UserKey global user id
View Source
const UsernameKey string = "x-md-uname"
UsernameKey global username
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.