{"modulePath":"github.com/programme-lv/backend","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package http\n\n## Functions\n\n```go\nfunc NewTaskHttpHandler(taskSrvc srvc.TaskService, opts ...HandlerOption) *taskHttpHandler\n```\n\n## Types\n\n```go\ntype Empty struct{}\n```\n\n```go\ntype Example struct {\n\tInput  string `json:\"input\"`\n\tOutput string `json:\"output\"`\n\tMdNote string `json:\"md_note,omitempty\"`\n}\n```\n\n```go\ntype HandlerOption func(*taskHttpHandler)\n```\n\n```go\nfunc WithFileStores(publicAssetStore, testfileStore *filestore.Store, testfileDownloadSigningKey []byte) HandlerOption\n```\n\n```go\ntype IllustrationImage struct {\n\tHttpUrl   string `json:\"http_url\"`\n\tWidthPx   int    `json:\"width_px\"`\n\tHeightPx  int    `json:\"height_px\"`\n\tSzInBytes int    `json:\"sz_in_bytes\"`\n}\n```\n\n```go\ntype MdStatement struct {\n\tStory   string `json:\"story\"`\n\tInput   string `json:\"input\"`\n\tOutput  string `json:\"output\"`\n\tNotes   string `json:\"notes\"`\n\tScoring string `json:\"scoring\"`\n\tTalk    string `json:\"talk\"`\n\tExample string `json:\"example\"`\n}\n```\n\n```go\ntype PutStatementReq struct {\n\tStory   string `json:\"story\"`\n\tInput   string `json:\"input\"`\n\tOutput  string `json:\"output\"`\n\tNotes   string `json:\"notes\"`\n\tScoring string `json:\"scoring\"`\n\tTalk    string `json:\"talk\"`\n\tExample string `json:\"example\"`\n}\n```\n\n```go\ntype StatementImage struct {\n\tS3Key     string `json:\"s3_key\"`\n\tFilename  string `json:\"filename\"`\n\tHttpUrl   string `json:\"http_url\"`\n\tWidthPx   int    `json:\"width_px\"`\n\tHeightPx  int    `json:\"height_px\"`\n\tSzInBytes int    `json:\"sz_in_bytes\"`\n}\n```\n\n```go\ntype SubtaskOverview struct {\n\tSubtaskID    int               `json:\"subtask\"`\n\tScore        int               `json:\"score\"`\n\tDescriptions map[string]string `json:\"descriptions\"`\n}\n```\n\n```go\ntype Task struct {\n\tShortTaskID          string             `json:\"short_task_id\"`\n\tTaskFullName         string             `json:\"task_full_name\"`\n\tMemoryLimitMegabytes int                `json:\"memory_limit_megabytes\"`\n\tCPUTimeLimitSeconds  float64            `json:\"cpu_time_limit_seconds\"`\n\tOriginOlympiad       string             `json:\"origin_olympiad\"`\n\tIllustrationImg      *IllustrationImage `json:\"illustration_img\"`\n\tDifficultyRating     *int               `json:\"difficulty_rating\"`\n\tDefaultMDStatement   MdStatement        `json:\"default_md_statement\"`\n\tStatementImages      []StatementImage   `json:\"statement_images\"`\n\tExamples             []Example          `json:\"examples\"`\n\tOriginNotes          map[string]string  `json:\"origin_notes\"`\n\tVisibleInputSubtasks []VisInputSubtask  `json:\"visible_input_subtasks\"`\n\tStatementSubtasks    []SubtaskOverview  `json:\"statement_subtasks\"`\n\tTestingType          string             `json:\"testing_type\"`\n}\n```\n\n```go\ntype TaskPreview struct {\n\tShortId          string             `json:\"short_id\"`\n\tFullName         string             `json:\"full_name\"`\n\tIllustrImg       *IllustrationImage `json:\"illustr_img\"`\n\tDifficultyRating int                `json:\"difficulty_rating\"`\n\tOriginOlympiad   string             `json:\"origin_olympiad\"`\n\tOriginNote       string             `json:\"origin_note\"`\n\tOriginNoteShort  string             `json:\"origin_note_short\"`\n\tMdStatementStory string             `json:\"md_statement_story\"`\n}\n```\n\n```go\ntype TestWithOnlyInput struct {\n\tTestID int    `json:\"test_id\"`\n\tInput  string `json:\"input\"`\n}\n```\n\n```go\ntype UploadTaskResponse struct {\n\tTaskId string `json:\"task_id\"`\n}\n```\n\n```go\ntype VisInputSubtask struct {\n\tSubtaskID  int                 `json:\"subtask\"`\n\tTestInputs []TestWithOnlyInput `json:\"inputs\"`\n}\n```\n\n","path":"github.com/programme-lv/backend/modules/task/http","name":"http","synopsis":"","isRedistributable":true}
