common

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
)

Functions

func GetVersion

func GetVersion() string

Types

type ProblemConfig

type ProblemConfig struct {
	Label    string             `json:"label"`
	Solution interface{}        `json:"solution"`
	Judge    ProblemConfigJudge `json:"judge"`
	Submit   interface{}        `json:"submit"`
}

type ProblemConfigJudge

type ProblemConfigJudge struct {
	Adapter string          `json:"adapter"`
	Config  json.RawMessage `json:"config"`
}

type SolutionDetails

type SolutionDetails struct {
	Version int                   `json:"version"`
	Jobs    []*SolutionDetailsJob `json:"jobs"`
	Summary string                `json:"summary"`
}

type SolutionDetailsJob

type SolutionDetailsJob struct {
	Name       string                 `json:"name"`
	Score      float64                `json:"score"`
	ScoreScale float64                `json:"scoreScale,omitempty"`
	Status     string                 `json:"status"`
	Tests      []*SolutionDetailsTest `json:"tests"`
	Summary    string                 `json:"summary,omitempty"`
}

type SolutionDetailsTest

type SolutionDetailsTest struct {
	Name       string  `json:"name"`
	Score      float64 `json:"score"`
	ScoreScale float64 `json:"scoreScale,omitempty"`
	Status     string  `json:"status"`
	Summary    string  `json:"summary,omitempty"`
}

type SolutionInfo

type SolutionInfo struct {
	Score   float64             `json:"score"`
	Metrics *map[string]float64 `json:"metrics,omitempty"`
	Status  string              `json:"status"`
	Message string              `json:"message"`
}

Jump to

Keyboard shortcuts

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