Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds all dependencies for the user API handlers.
type ProblemResponse ¶
type ProblemResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Level string `yaml:"level" json:"level"`
StartTime time.Time `json:"starttime"`
EndTime time.Time `json:"endtime"`
MaxSubmissions int `json:"max_submissions"`
Cluster string `json:"cluster"`
CPU int `json:"cpu"`
Memory int64 `json:"memory"`
Upload judger.UploadLimit `json:"upload"`
Workflow []WorkflowStepResponse `json:"workflow"`
Score judger.ScoreConfig `json:"score"`
Description string `json:"description"`
}
type PublicProfileResponse ¶
type PublicProfileResponse struct {
ID string `json:"id"`
Username string `json:"username"`
Nickname string `json:"nickname"`
Signature string `json:"signature"`
AvatarURL string `json:"avatar_url"`
Tags string `json:"tags"`
}
PublicProfileResponse 定义了用户的公开可访问信息。
type WorkflowStepResponse ¶
Click to show internal directories.
Click to hide internal directories.