problemset

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteProblemTag

func DeleteProblemTag(tgs njudge.TagsService) echo.HandlerFunc

func GetProblem

func GetProblem(tags njudge.Tags) echo.HandlerFunc

func GetProblemAttachment

func GetProblemAttachment() echo.HandlerFunc

func GetProblemEdit added in v0.6.0

func GetProblemEdit(users njudge.Users, cs njudge.Categories) echo.HandlerFunc

func GetProblemList

func GetProblemList(store problems.Store, ps njudge.Problems, cs njudge.Categories, problemListQuery njudge.ProblemListQuery, pinfo njudge.ProblemInfoQuery, tags njudge.Tags) echo.HandlerFunc

func GetProblemPDF

func GetProblemPDF() echo.HandlerFunc

func GetProblemRanklist

func GetProblemRanklist(subList njudge.SubmissionListQuery, users njudge.Users) echo.HandlerFunc

func GetProblemStatus

func GetProblemStatus(subList njudge.SubmissionListQuery, probList problems.Store) echo.HandlerFunc

func GetProblemSubmit

func GetProblemSubmit() echo.HandlerFunc

func GetRanklist added in v0.6.0

func GetRanklist(rs njudge.ProblemsetRanklistService) echo.HandlerFunc

func GetStatus

func GetStatus(subList njudge.SubmissionListQuery) echo.HandlerFunc

func PostProblemEdit added in v0.6.0

func PostProblemEdit(ps njudge.Problems, cs njudge.Categories) echo.HandlerFunc

func PostProblemTag

func PostProblemTag(tgs njudge.TagsService) echo.HandlerFunc

func PostSubmit

func PostSubmit(submissions njudge.Submissions, subService *njudge.SubmitService) echo.HandlerFunc

func RenameProblemMiddleware

func RenameProblemMiddleware(problemStore problems.Store) func(echo.HandlerFunc) echo.HandlerFunc

func SetMiddleware added in v0.6.0

func SetMiddleware(ps njudge.Problemsets) func(echo.HandlerFunc) echo.HandlerFunc

func SetProblemMiddleware

func SetProblemMiddleware(store problems.Store, ps njudge.ProblemQuery, pinfo njudge.ProblemInfoQuery) func(echo.HandlerFunc) echo.HandlerFunc

func VisibilityMiddleware added in v0.4.0

func VisibilityMiddleware() echo.MiddlewareFunc

Types

type GetProblemStatusRequest added in v0.5.0

type GetProblemStatusRequest struct {
	AC     string `query:"ac"`
	UserID int    `query:"user_id"`
	Page   int    `query:"page"`

	Problemset string `param:"name"`
	Problem    string `param:"problem"`
}

type GetStatusRequest added in v0.5.0

type GetStatusRequest struct {
	AC         string `query:"ac"`
	UserID     int    `query:"user_id"`
	Problemset string `query:"problem_set"`
	Problem    string `query:"problem"`
	Page       int    `query:"page"`
}

type ProblemListRequest added in v0.5.0

type ProblemListRequest struct {
	Page   int    `query:"page"`
	Order_ string `query:"order"`
	Order  njudge.SortDirection
	By_    string `query:"by"`
	By     njudge.ProblemSortField

	TitleFilter    string `query:"title"`
	CategoryFilter int    `query:"category"`
	TagFilter      string `query:"tags"`

	Problemset string `param:"name"`
}

func NewProblemListRequest added in v0.5.0

func NewProblemListRequest(c echo.Context) (*ProblemListRequest, error)

Jump to

Keyboard shortcuts

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