system

package
v0.0.0-...-670fffb Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(cfg config.Configuration, cmd string) error

func CompileSource

func CompileSource(cfg config.Configuration, problemId string, showStdError bool) error

func CopyTemplateToSource

func CopyTemplateToSource(cfg config.Configuration, problemId string) error

func CopyTemplateToSourceList

func CopyTemplateToSourceList(cfg config.Configuration, problemIdList []string) error

func Create

func Create(cfg config.Configuration, cmd string) error

func CreateContest

func CreateContest(cfg config.Configuration) error

func CreateProblem

func CreateProblem(cfg config.Configuration, problemId string) error

func CreateSource

func CreateSource(cfg config.Configuration, problemId string) error

func CreateSourceList

func CreateSourceList(cfg config.Configuration, problemIdList []string) error

func ExecuteSourceBinary

func ExecuteSourceBinary(cfg config.Configuration, testcase dto.Testcase, problemId string) dto.ExecutionResult

func GetBody

func GetBody(URL string) ([]byte, error)

func GetProblemIdList

func GetProblemIdList(URL string) ([]string, error)

func GetProblemName

func GetProblemName(body []byte) string

func GetVerdict

func GetVerdict(testcase dto.Testcase, executionResult *dto.ExecutionResult)

func Open

func Open(cfg config.Configuration, cmd string) error

func OpenProblem

func OpenProblem(cfg config.Configuration, problemId string) error

func Parse

func Parse(cfg config.Configuration, cmd string) error

func ParseContest

func ParseContest(cfg config.Configuration, problemIdList []string) error

Parse Contest

func ParseProblem

func ParseProblem(cfg config.Configuration, problemId string) error

ParseProblem parse problem to path

func PublishTestResult

func PublishTestResult(problemInfo dto.Problem, executionResultList []dto.ExecutionResult)

func RunTest

func RunTest(cfg config.Configuration, cmd string) error

func Source

func Source(cfg config.Configuration, cmd string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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