Documentation
¶
Index ¶
Constants ¶
View Source
const ( VerdictAC = Verdict(problems.VerdictAC) VerdictWA = Verdict(problems.VerdictWA) VerdictRE = Verdict(problems.VerdictRE) VerdictTL = Verdict(problems.VerdictTL) VerdictML = Verdict(problems.VerdictML) VerdictXX = Verdict(problems.VerdictXX) VerdictDR = Verdict(problems.VerdictDR) VerdictPC = Verdict(problems.VerdictPC) VerdictPE = Verdict(problems.VerdictPE) VerdictCE Verdict = 998 VerdictRU Verdict = 999 VerdictUP Verdict = 1000 )
Variables ¶
View Source
var ( ErrorFileNotFound = errors.New("file not found") ErrorStatementNotFound = errors.New("statement not found") )
Functions ¶
This section is empty.
Types ¶
type CategoryFilter ¶
type CategoryFilter struct { Type CategoryFilterType Value interface{} }
func NewCategoryEmptyFilter ¶
func NewCategoryEmptyFilter() CategoryFilter
func NewCategoryIDFilter ¶
func NewCategoryIDFilter(ID int) CategoryFilter
type CategoryFilterType ¶
type CategoryFilterType int
const ( CategoryFilterNone CategoryFilterType = iota CategoryFilterEmpty CategoryFilterID )
type PaginationList ¶
type PaginationList struct { Pages []pagination.Link Problems []Problem }
type Problem ¶
type Problem struct { problems.Problem models.ProblemRel }
func (*Problem) GetAttachment ¶
type ProblemTag ¶
type ProblemTag struct {
models.ProblemTag
}
type ProblemTagRepository ¶
type Repository ¶
type SolvedStatus ¶
type SolvedStatus int
const ( Unattempted SolvedStatus = iota Attempted PartiallySolved Solved Unknown )
type StatsData ¶
type StatsData struct { SolverCount int SolvedStatus SolvedStatus LastLanguage string CategoryLink ui.Link CategoryID int Tags []Tag Submissions []submission.Submission }
Click to show internal directories.
Click to hide internal directories.