Documentation
¶
Index ¶
- type Account
- type Actuator
- type Args
- type Blueprint
- type Credential
- type FileRecord
- type FileRecords
- type Group
- type JudgeStatus
- type Judgement
- type Model
- type Page
- type Problem
- type Process
- type Program
- type RankList
- type RankListModel
- type RankListRecord
- type Role
- type Slot
- type Slots
- type Submission
- type UserGroupCorrelation
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶
type FileRecord ¶
type FileRecord struct {
Opt string `json:"opt"` // Add Delete
FileType string `json:"file_type"`
FilePath string `json:"file_path"`
VolumeName string `json:"volume"`
VolumePath string `json:"volumePath"`
}
func (FileRecord) IsDir ¶
func (f FileRecord) IsDir() bool
func (FileRecord) ModTime ¶
func (f FileRecord) ModTime() time.Time
func (FileRecord) Mode ¶
func (f FileRecord) Mode() os.FileMode
func (FileRecord) Name ¶
func (f FileRecord) Name() string
func (FileRecord) Size ¶
func (f FileRecord) Size() int64
func (FileRecord) Sys ¶
func (f FileRecord) Sys() interface{}
type FileRecords ¶
type FileRecords []*FileRecord
func (*FileRecords) Scan ¶
func (fileRecords *FileRecords) Scan(value interface{}) error
type JudgeStatus ¶
type JudgeStatus string
const ( Pending JudgeStatus = "Pending" Running JudgeStatus = "Running" Canceled JudgeStatus = "Canceled" Finished JudgeStatus = "Finished" PartiallyCorrect JudgeStatus = "PartiallyCorrect" WrongAnswer JudgeStatus = "WrongAnswer" Accepted JudgeStatus = "Accepted" TimeLimitExceeded JudgeStatus = "TimeLimitExceeded" MemoryLimitExceeded JudgeStatus = "MemoryLimitExceeded" OutputLimitExceeded JudgeStatus = "OutputLimitExceeded" RuntimeError JudgeStatus = "RuntimeError" FileError JudgeStatus = "FileError" SystemError JudgeStatus = "SystemError" JudgementFailed JudgeStatus = "JudgementFailed" CompilationError JudgeStatus = "CompilationError" ConfigurationError JudgeStatus = "ConfigurationError" InvalidInteraction JudgeStatus = "InvalidInteraction" )
func (*JudgeStatus) Scan ¶
func (p *JudgeStatus) Scan(value interface{}) error
func (JudgeStatus) TableName ¶
func (JudgeStatus) TableName() string
type Page ¶
type Page struct {
Model
ProblemId uint64 `json:"problemId"`
Locale string `json:"locale"`
Title string `json:"title" gorm:"not null"` // title
Description string `json:"description"`
InputFormat string `json:"input_format"`
OutputFormat string `json:"output_format"`
Example string `json:"example"`
HintAndLimit string `json:"hint_and_limit"`
}
type RankList ¶ added in v0.0.19
type RankList struct {
Model
ProblemID uint64 `json:"-"`
Name string `json:"name"`
Title string `json:"title"`
Models []RankListModel `json:"metrics"`
Records []RankListRecord `json:"records"`
}
type RankListModel ¶ added in v0.0.19
type RankListRecord ¶ added in v0.0.19
type Submission ¶
type UserGroupCorrelation ¶
Click to show internal directories.
Click to hide internal directories.