Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) Judge ¶ added in v0.4.0
func (c Client) Judge(ctx context.Context, sub Submission, callback ResultCallback) (*problems.Status, error)
type Judge ¶ added in v0.4.0
type Judge struct { SandboxProvider sandbox.Provider ProblemStore ProblemStore LanguageStore language.Store RateLimit time.Duration Tokens chan struct{} Logger *slog.Logger }
func (*Judge) Judge ¶ added in v0.4.0
func (j *Judge) Judge(ctx context.Context, sub Submission, callback ResultCallback) (*problems.Status, error)
type Judger ¶ added in v0.4.0
type Judger interface {
Judge(ctx context.Context, sub Submission, callback ResultCallback) (*problems.Status, error)
}
type ParallelEvaluator ¶ added in v0.4.0
type ProblemStore ¶ added in v0.4.0
type ResultCallback ¶ added in v0.4.0
type Server ¶
type Server struct { Logger *slog.Logger Judger Judger ProblemStore problems.Store Config struct { Port string } }
func (Server) PostJudgeHandler ¶ added in v0.4.0
func (s Server) PostJudgeHandler() echo.HandlerFunc
type ServerOption ¶ added in v0.4.0
type ServerOption func(*Server)
func WithPortServerOption ¶ added in v0.4.0
func WithPortServerOption(port int) ServerOption
Click to show internal directories.
Click to hide internal directories.