run

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartJudgement added in v2.2.1

func StartJudgement(options *RunOption) (*executor.JudgeSession, *commonStructs.JudgeResult, error)

Start Judgement

func UserRunJudge

func UserRunJudge(c *cli.Context) error

执行评测

Types

type JudgementBenchmark added in v2.1.0

type JudgementBenchmark struct {
	TimeUsed float64        `json:"time_used"`
	Counter  map[string]int `json:"counter"`
	Message  string         `json:"message"`
}

type RunOption added in v2.2.1

type RunOption struct {
	Persistence *persistence.JudgeResultPersisOptions
	Clean       bool
	ConfigFile  string
	WorkDir     string
	ShowLog     bool
	LogLevel    int
	Language    string
	LibraryDir  string
	CodePath    string
	SessionId   string
	SessionRoot string
}

Jump to

Keyboard shortcuts

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