Documentation
¶
Index ¶
- func Identifier(fs afero.Fs, path string) bool
- func Parser(fs afero.Fs, path string) (problems.Problem, error)
- type Problem
- func (p Problem) Attachments() problems.Attachments
- func (p Problem) Checker() problems.Checker
- func (p Problem) EvaluationFiles() []problems.EvaluationFile
- func (p Problem) GetTaskType() problems.TaskType
- func (p Problem) HTMLStatements() problems.Contents
- func (p Problem) InputOutputFiles() (string, string)
- func (p Problem) Interactive() bool
- func (p Problem) Languages() []language.Language
- func (p Problem) MemoryLimit() memory.Amount
- func (p Problem) Name() string
- func (p Problem) PDFStatements() problems.Contents
- func (p Problem) Statements() problems.Contents
- func (p Problem) StatusSkeleton(name string) (*problems.Status, error)
- func (p Problem) Tags() []string
- func (p Problem) TimeLimit() int
- func (p Problem) Titles() problems.Contents
- type TaskYAML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Problem ¶
type Problem struct {
TaskYAML
StatementList problems.Contents
AttachmentList problems.Attachments
InputPathPattern string
AnswerPathPattern string
Path string
// contains filtered or unexported fields
}
func (Problem) Attachments ¶
func (p Problem) Attachments() problems.Attachments
func (Problem) EvaluationFiles ¶ added in v0.4.0
func (p Problem) EvaluationFiles() []problems.EvaluationFile
func (Problem) GetTaskType ¶
func (Problem) HTMLStatements ¶
func (Problem) InputOutputFiles ¶
func (Problem) Interactive ¶
func (Problem) MemoryLimit ¶
func (Problem) PDFStatements ¶
func (Problem) Statements ¶
func (Problem) StatusSkeleton ¶
type TaskYAML ¶
type TaskYAML struct {
Name string `yaml:"name"`
Title string
TimeLimit float64 `yaml:"time_limit"`
MemoryLimit int `yaml:"memory_limit"`
InputCount int `yaml:"n_input"`
Infile string
Outfile string
PrimaryLanguage string `yaml:"primary_language"`
TokenMode string `yaml:"token_mode"`
MaxSubmissionCount int `yaml:"max_submission_number"`
PublicTestcases string `yaml:"public_testcases"`
FeedbackLevel string `yaml:"feedback_level"`
ScoreType string `yaml:"score_type"`
ScoreTypeParameters [][2]interface{} `yaml:"score_type_parameters"`
ScorePrecision int `yaml:"score_precision"`
ScoreMode string `yaml:"score_mode"`
TotalValue int `yaml:"total_value"`
OutputOnly bool `yaml:"output_only"`
TaskTypeParameters []string `yaml:"task_type_parameters"`
}
Click to show internal directories.
Click to hide internal directories.