common

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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"`
	Status     string                 `json:"status"`
	Tests      []*SolutionDetailsTest `json:"tests"`
	Summary    string                 `json:"summary"`
}

type SolutionDetailsTest

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

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