Documentation ¶
Index ¶
- func AddFrontendPagePolicies() error
- func AddProblemCasbinPolicies() error
- func AddUserCasbinPolicies() error
- func RenderHTML(c *gin.Context)
- func SetupAuthRouter(baseRoute *gin.RouterGroup)
- func SetupEventRouter(baseRoute *gin.RouterGroup)
- func SetupFrontendRoute(baseRoute *gin.RouterGroup, frontendDist string)
- func SetupJudgeResultRouter(baseRoute *gin.RouterGroup)
- func SetupJudgeRouter(baseRoute *gin.RouterGroup)
- func SetupJudgeTaskRouter(baseRoute *gin.RouterGroup)
- func SetupProblemRouter(baseRoute *gin.RouterGroup)
- func SetupRankRouter(baseRoute *gin.RouterGroup)
- func SetupSwaggoRouter(r *gin.RouterGroup)
- func SetupUserRouter(baseRoute *gin.RouterGroup)
- func Stream(ginCtx *gin.Context)
- type PickJudgeTaskBody
- type PostJudgeBody
- type ReportJudgeResultBody
- type ReportJudgeResultCountBody
- type ReportJudgeTaskBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFrontendPagePolicies ¶
func AddFrontendPagePolicies() error
func AddProblemCasbinPolicies ¶
func AddProblemCasbinPolicies() error
func AddUserCasbinPolicies ¶
func AddUserCasbinPolicies() error
func RenderHTML ¶
func SetupAuthRouter ¶
func SetupAuthRouter(baseRoute *gin.RouterGroup)
func SetupEventRouter ¶
func SetupEventRouter(baseRoute *gin.RouterGroup)
func SetupFrontendRoute ¶
func SetupFrontendRoute(baseRoute *gin.RouterGroup, frontendDist string)
func SetupJudgeResultRouter ¶
func SetupJudgeResultRouter(baseRoute *gin.RouterGroup)
func SetupJudgeRouter ¶
func SetupJudgeRouter(baseRoute *gin.RouterGroup)
func SetupJudgeTaskRouter ¶
func SetupJudgeTaskRouter(baseRoute *gin.RouterGroup)
func SetupProblemRouter ¶
func SetupProblemRouter(baseRoute *gin.RouterGroup)
func SetupRankRouter ¶
func SetupRankRouter(baseRoute *gin.RouterGroup)
func SetupSwaggoRouter ¶
func SetupSwaggoRouter(r *gin.RouterGroup)
func SetupUserRouter ¶
func SetupUserRouter(baseRoute *gin.RouterGroup)
Types ¶
type PickJudgeTaskBody ¶
type PickJudgeTaskBody struct {
Consumer string `json:"consumer"`
}
type PostJudgeBody ¶
type PostJudgeBody struct { Code string `json:"code" binding:"required"` Language judge_model.ProgrammingLanguage `json:"language" binding:"required"` }
PostJudgeBody
@Description The body of a judge request, containing the code and the language used for the judge. @Property code (string) required "The source code of the judge" minlength(1) @Property language (ProgrammingLanguage) required "The programming language used for the judge"
type ReportJudgeResultBody ¶
type ReportJudgeTaskBody ¶
Click to show internal directories.
Click to hide internal directories.