package
0.0.0-20221028095223-bef4ad1ff22c
Repository: https://github.com/monkey-mouse/mo2.git
Documentation: pkg.go.dev
# Functions
Contains test slice contain string.
No description provided by the author
No description provided by the author
No description provided by the author
GenerateJwtCode generate jwt token with claim in type JwtClaims for info dto.LoginUserInfo jwtToken string.
GenerateJwtToken generate jwt token with claim in type JwtClaims for info string jwtToken string.
GenerateVerifyJwtToken generate jwt token with claim in type JwtClaims for info string jwtToken string.
GetKey from redis or create new key.
GetUserInfo get user info from gin context.
No description provided by the author
No description provided by the author
IndexBlog index the blog.
IndexBlogs index multiple blogs.
No description provided by the author
IsEnvRelease check if GIN_MODE is release.
IsInRole check if user is in role.
ParseJwt for JwtLoginClaimsif token is valid, return nil.
ParsePagination get pagination info from ctx.
ProcessAllFiles use handler function to process each file recursively under srcPath.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UploadCDN upload frontend files to cdn.
# Constants
UserInfoKey name of param whitch stores userinfo in gin.Context.
# Structs
JwtInfoClaims claim with extra string info.
JwtLoginClaims mo2 jwt claims.