model

package
v0.0.0-...-77f4496 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PendingStatus = "Pending"
	RunningStatus = "Running"

	FailedStatus = "Failed"
	OkStatus     = "OK"

	AC_Status = "Accepted"
	WA_Status = "Wrong answer"
	CE_Status = "Compile error"
	RE_Status = "Runtime error"
	TL_Status = "Time limit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	CompilerId string `json:"compilerId"`
	Name       string `json:"name"`
	CmdCompile string `json:"cmdCompile"`
	CmdRun     string `json:"cmdRun"`
}

type Execution

type Execution struct {
	CompilerId string `json:"compilerId"`
	Time       int    `json:"time"`
	Memory     int    `json:"memory"`
	Error      string `json:"error"`
}

type Problem

type Problem struct {
	ProblemId string `json:"problemId"`
	Title     string `json:"title"`
}

type ProposedSolution

type ProposedSolution struct {
	ProblemId  string `json:"problemId"`
	CompilerId string `json:"compilerId"`
	Filename   string `json:"filename"`
	Source     []byte `json:"source"`
}

type Solution

type Solution struct {
	Checksum string `json:"checksum"`
	FileName string `json:"filename"`
	FileSize int    `json:"size"`
}

type Submission

type Submission struct {
	SubmissionId string    `json:"submissionId"`
	Problem      *Problem  `json:"problem"`
	Solution     *Solution `json:"solution"`
	Execution    Execution `json:"execution"`
	Tests        []Test    `json:"tests"`
	Status       string    `json:"status"`
	Date         string    `json:"date"`
}

type Test

type Test struct {
	Case   int    `json:"case"`
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL