Documentation ¶ Index ¶ func NewAdminRouter(cfg *config.Config, db *gorm.DB, scheduler *judger.Scheduler, ...) *gin.Engine type AssetInfo type Handler func NewHandler(cfg *config.Config, db *gorm.DB, scheduler *judger.Scheduler, ...) *Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewAdminRouter ¶ func NewAdminRouter( cfg *config.Config, db *gorm.DB, scheduler *judger.Scheduler, appState *judger.AppState) *gin.Engine NewAdminRouter creates and configures the admin Gin engine. Types ¶ type AssetInfo ¶ added in v0.5.0 type AssetInfo struct { Name string `json:"name"` Path string `json:"path"` // Relative to index.assets IsDir bool `json:"is_dir"` Size int64 `json:"size"` ModTime time.Time `json:"mod_time"` } type Handler ¶ type Handler struct { // contains filtered or unexported fields } Handler holds all dependencies for the admin API handlers. func NewHandler ¶ func NewHandler( cfg *config.Config, db *gorm.DB, scheduler *judger.Scheduler, appState *judger.AppState, ) *Handler NewHandler creates a new admin handler with its dependencies. Source Files ¶ View all Source files announcement.goassets.gocluster.gocontainer.gocontest.gohandler.gomanagement.goproblem.gorouter.goscore.gosubmission.gouser.goutils.gows.go Click to show internal directories. Click to hide internal directories.