Documentation ¶
Index ¶
- func DeleteProblemTag(tgs njudge.TagsService) echo.HandlerFunc
- func GetProblem(tags njudge.Tags) echo.HandlerFunc
- func GetProblemAttachment() echo.HandlerFunc
- func GetProblemEdit(users njudge.Users, cs njudge.Categories) echo.HandlerFunc
- func GetProblemList(store problems.Store, ps njudge.Problems, cs njudge.Categories, ...) echo.HandlerFunc
- func GetProblemPDF() echo.HandlerFunc
- func GetProblemRanklist(subList njudge.SubmissionListQuery, users njudge.Users) echo.HandlerFunc
- func GetProblemStatus(subList njudge.SubmissionListQuery, probList problems.Store) echo.HandlerFunc
- func GetProblemSubmit() echo.HandlerFunc
- func GetRanklist(rs njudge.ProblemsetRanklistService) echo.HandlerFunc
- func GetStatus(subList njudge.SubmissionListQuery) echo.HandlerFunc
- func PostProblemEdit(ps njudge.Problems, cs njudge.Categories) echo.HandlerFunc
- func PostProblemTag(tgs njudge.TagsService) echo.HandlerFunc
- func PostSubmit(submissions njudge.Submissions, subService *njudge.SubmitService) echo.HandlerFunc
- func RenameProblemMiddleware(problemStore problems.Store) func(echo.HandlerFunc) echo.HandlerFunc
- func SetMiddleware(ps njudge.Problemsets) func(echo.HandlerFunc) echo.HandlerFunc
- func SetProblemMiddleware(store problems.Store, ps njudge.ProblemQuery, pinfo njudge.ProblemInfoQuery) func(echo.HandlerFunc) echo.HandlerFunc
- func VisibilityMiddleware() echo.MiddlewareFunc
- type GetProblemStatusRequest
- type GetStatusRequest
- type ProblemListRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteProblemTag ¶
func DeleteProblemTag(tgs njudge.TagsService) echo.HandlerFunc
func GetProblem ¶
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 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 GetStatusRequest ¶ added in v0.5.0
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)
Click to show internal directories.
Click to hide internal directories.