models

package
v0.0.0-...-c6b391f Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecResult

type ExecResult struct {
	Test_id       string  `json:"test_id"`
	Status        *Status `json:"status"`
	ExecResult_id string  `json:"exec_result_id"`
}

type JavaDriverPayload

type JavaDriverPayload struct {
	Class_name string     `json:"class_name" validate:"required"`
	Exec_time  int        `json:"exec_time" validate:"required"`
	Tests      []TestCase `json:"tests" validate:"required"`
}

type Result

type Result struct {
	Problem_id string       `json:"problem_id"`
	Status     string       `json:"status"`
	Results    []ExecResult `json:"results"`
	Error      string       `json:"error"`
}

type Status

type Status struct {
	Message         string    `json:"message"`
	Current_status  string    `json:"current_status"`
	Stdout          string    `json:"stdout"`
	Stderr          string    `json:"stderr"`
	Exec_time_ms    uint16    `json:"exec_time_ms"`
	Stdin           string    `json:"stdin"`
	Expected_output string    `json:"expected_output"`
	Completed_At    time.Time `json:"completed_at"`
}

type Submission

type Submission struct {
	ID         string     `json:"id"`
	Problem_id string     `json:"problem_id"`
	Language   string     `json:"language" binding:"required" validate:"required"`
	Code       string     `json:"code" binding:"required" validate:"required"`
	Tests      []TestCase `json:"tests" binding:"required" validate:"required"`
}

type TestCase

type TestCase struct {
	Problem_id     string `json:"problem_id"`
	Stdin          string `json:"stdin" binding:"required" validate:"required"`
	ExpectedOutput string `json:"expected_output" binding:"required" validate:"required"`
	Test_id        string `json:"test_id"`
}

Directories

Path Synopsis
enums

Jump to

Keyboard shortcuts

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