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 URLSafeBase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" )
Character sets
View Source
const ( PrimaryKey = NumLowerUpper PrimaryKeySize = 16 )
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 SpaceKey string = "x-md-sid"
SpaceKey global space id SpaceKey = 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 UserEmailKey = "x-md-email"
UserEmailKey global user email
View Source
const UserIsCertifiedKey = "x-md-is-certified"
UserIsCertifiedKey global user is certified
View Source
const UserKey string = "x-md-uid"
UserKey global user id
View Source
const UserStatusKey = "x-md-status"
UserStatusKey global user status
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.