submit

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerfile

func BuildDockerfile(language string)

func ContainerCreateAndStart

func ContainerCreateAndStart(json Receiveprogramformat) int

func ReceiveSubmitProgram

func ReceiveSubmitProgram(c *gin.Context)

Types

type Receiveprogramformat

type Receiveprogramformat struct {
	Data             string   `json:"data"`
	DataID           string   `json:"dataID"`
	AuthorID         string   `json:"authorID"`
	Language         string   `json:"language"`
	Timeout          int      `json:"timeout"`
	Memory           int      `json:"memory"`
	TestCaseInput    []string `json:"testCaseInput"`
	TestCaseOutput   []string `json:"testCaseOutput"`
	SecretCaseInput  []string `json:"secretCaseInput"`
	SecretCaseOutput []string `json:"secretCaseOutput"`
}

Jump to

Keyboard shortcuts

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