Documentation ¶
Index ¶
- Constants
- type JwtUser
- type MApp
- func (mapp *MApp) GenerateJwt(user *JwtUser) (string, error)
- func (mapp *MApp) PageIndex(ctx *gin.Context)
- func (mapp *MApp) PageLogin(ctx *gin.Context)
- func (mapp *MApp) PageRegister(ctx *gin.Context)
- func (mapp *MApp) PageTeams(ctx *gin.Context)
- func (mapp *MApp) PageUsers(ctx *gin.Context)
- func (mapp *MApp) ParseJwt(tokenStr string) (*JwtUser, error)
- func (mapp *MApp) Run() error
- func (mapp *MApp) UserLogin(ctx *gin.Context)
- func (mapp *MApp) UserLogout(ctx *gin.Context)
- func (mapp *MApp) UserRegister(ctx *gin.Context)
Constants ¶
View Source
const ( APP_NAME = "MoliCTF" APP_DESC = "A simple and easy-to-use CTF training platform." APP_COPY = template.HTML("© Copyright <a id=\"githubLink\" href=\"https://github.com/8ea7b571/MoliCTF\"> MoliCTF </a> yvling 2024") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.