Documentation
¶
Index ¶
- func NewTaskHttpHandler(taskSrvc srvc.TaskService, opts ...HandlerOption) *taskHttpHandler
- type Empty
- type Example
- type HandlerOption
- type IllustrationImage
- type MdStatement
- type PutStatementReq
- type StatementImage
- type SubtaskOverview
- type Task
- type TaskPreview
- type TestWithOnlyInput
- type UploadTaskResponse
- type VisInputSubtask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskHttpHandler ¶
func NewTaskHttpHandler(taskSrvc srvc.TaskService, opts ...HandlerOption) *taskHttpHandler
Types ¶
type HandlerOption ¶
type HandlerOption func(*taskHttpHandler)
func WithFileStores ¶
func WithFileStores(publicAssetStore, testfileStore *filestore.Store, testfileDownloadSigningKey []byte) HandlerOption
type IllustrationImage ¶
type MdStatement ¶
type PutStatementReq ¶
type StatementImage ¶
type SubtaskOverview ¶
type Task ¶
type Task struct {
ShortTaskID string `json:"short_task_id"`
TaskFullName string `json:"task_full_name"`
MemoryLimitMegabytes int `json:"memory_limit_megabytes"`
CPUTimeLimitSeconds float64 `json:"cpu_time_limit_seconds"`
OriginOlympiad string `json:"origin_olympiad"`
IllustrationImg *IllustrationImage `json:"illustration_img"`
DifficultyRating *int `json:"difficulty_rating"`
DefaultMDStatement MdStatement `json:"default_md_statement"`
StatementImages []StatementImage `json:"statement_images"`
Examples []Example `json:"examples"`
OriginNotes map[string]string `json:"origin_notes"`
VisibleInputSubtasks []VisInputSubtask `json:"visible_input_subtasks"`
StatementSubtasks []SubtaskOverview `json:"statement_subtasks"`
TestingType string `json:"testing_type"`
}
type TaskPreview ¶
type TaskPreview struct {
ShortId string `json:"short_id"`
FullName string `json:"full_name"`
IllustrImg *IllustrationImage `json:"illustr_img"`
DifficultyRating int `json:"difficulty_rating"`
OriginOlympiad string `json:"origin_olympiad"`
OriginNote string `json:"origin_note"`
OriginNoteShort string `json:"origin_note_short"`
MdStatementStory string `json:"md_statement_story"`
}
type TestWithOnlyInput ¶
type UploadTaskResponse ¶
type UploadTaskResponse struct {
TaskId string `json:"task_id"`
}
type VisInputSubtask ¶
type VisInputSubtask struct {
SubtaskID int `json:"subtask"`
TestInputs []TestWithOnlyInput `json:"inputs"`
}
Click to show internal directories.
Click to hide internal directories.