docs: better packages docs
This commit is contained in:
parent
e9c3172e9a
commit
1150cc4697
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/joint-online-judge/JOJ3/cmd/joj3/conf"
|
||||
executors "github.com/joint-online-judge/JOJ3/internal/executor"
|
||||
"github.com/joint-online-judge/JOJ3/internal/executor"
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parser"
|
||||
"github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
||||
|
@ -139,7 +139,7 @@ func Run(
|
|||
) (
|
||||
stageResults []stage.StageResult, forceQuitStageName string, err error,
|
||||
) {
|
||||
executors.InitWithConf(
|
||||
executor.InitWithConf(
|
||||
conf.Stage.SandboxExecServer,
|
||||
conf.Stage.SandboxToken,
|
||||
)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
package executors
|
||||
// Package executor contains all the executors.
|
||||
package executor
|
||||
|
||||
import (
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/executor/dummy"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
package parsers
|
||||
// Package parser contains all the parsers.
|
||||
package parser
|
||||
|
||||
import (
|
||||
_ "github.com/joint-online-judge/JOJ3/internal/parser/clangtidy"
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
// Referenced from https://github.com/yuriisk/clang-tidy-converter/blob/master/clang_tidy_converter/parser/clang_tidy_parser.py
|
||||
package clangtidy
|
||||
|
||||
import (
|
||||
|
@ -9,6 +8,7 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
// Referenced from https://github.com/yuriisk/clang-tidy-converter/blob/master/clang_tidy_converter/parser/clang_tidy_parser.py
|
||||
type Level int
|
||||
|
||||
const (
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
// dynamically. It is used for custom parsers.
|
||||
// The plugin needs to be located at `ModPath` and export a symbol with name
|
||||
// `SymName` that implements the stage.Parser interface.
|
||||
|
||||
package plugin
|
||||
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
// Package tierscore provides a parser for tiered scoring based on
|
||||
// time and memory constraints. Leave the field empty or 0 to disable.
|
||||
|
||||
package tierscore
|
||||
|
||||
import "github.com/joint-online-judge/JOJ3/internal/stage"
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
// Package stage provides functionality to run stages. Each stage contains an
|
||||
// executor and multiple parsers. The executor executes the command and parsers
|
||||
// parse the output generated by the executor.
|
||||
package stage
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package healthcheck provides a set of health checks for a repository.
|
||||
package healthcheck
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Package sample provides a sample function that returns a Result.
|
||||
package sample
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in New Issue
Block a user