Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrReqContestID = newRequiredError("Contest ID") ErrReqTaskID = newRequiredError("Task ID") ErrReqSourceCode = newRequiredError("Source code") ErrReqCSRFToken = newRequiredError("CSRF token") ErrPageGT0 = errors.New("Page must be greater than 0") ErrInvalidRatedType = newInvalidErrorFunc[constant.RatedType]("rated type") ErrInvalidCategory = newInvalidErrorFunc[constant.ContestCategory]("category") ErrInvalidLanguageID = newInvalidErrorFunc[constant.LanguageID]("language ID") )
Functions ¶
This section is empty.
Types ¶
type ContestArchive ¶
type ContestArchive struct { Page int RatedType *constant.RatedType Category *constant.ContestCategory Keyword *string }
func (ContestArchive) URLValues ¶
func (r ContestArchive) URLValues() url.Values
func (ContestArchive) Validate ¶ added in v0.0.7
func (r ContestArchive) Validate() error
type ContestTask ¶
type ContestTask struct {
ContestID string
}
func (ContestTask) Validate ¶ added in v0.0.7
func (r ContestTask) Validate() error
Click to show internal directories.
Click to hide internal directories.