Documentation ¶
Index ¶
- Constants
- Variables
- func At(s Scraper) (bool, error)
- func TargetURL(s Scraper) string
- func To(s Scraper) error
- type ContestPage
- func (p *ContestPage) GetContest() (*models.Contest, error)
- func (p *ContestPage) Hostname() string
- func (p *ContestPage) IsJoined() (bool, error)
- func (p *ContestPage) Join() error
- func (p *ContestPage) Navbar() *modules.NavbarModule
- func (p *ContestPage) Page() *agouti.Page
- func (p *ContestPage) TargetPath() string
- type LoginPage
- type Scraper
- type SubmissionsPage
- type TaskPage
- func (p *TaskPage) GetTask() (*models.Task, error)
- func (p *TaskPage) Hostname() string
- func (p *TaskPage) Page() *agouti.Page
- func (p *TaskPage) SetLang(lang models.Language) error
- func (p *TaskPage) SetSource(source string) error
- func (p *TaskPage) Submit(lang models.Language, source string) error
- func (p *TaskPage) TargetPath() string
- type TasksPage
- type TestcasesPage
Constants ¶
View Source
const (
PracticeContestID = "practice"
)
Variables ¶
View Source
var ErrSubmissionNotFound = fmt.Errorf("submission not found")
View Source
var ErrTaskNameNotFound = fmt.Errorf("task name not found")
View Source
var ErrTestcasesFolderNotFound = fmt.Errorf("contest testcases folder not found")
Functions ¶
Types ¶
type ContestPage ¶
type ContestPage struct {
// contains filtered or unexported fields
}
func NewContestPage ¶
func NewContestPage(page *agouti.Page, contestID string) (*ContestPage, error)
func (*ContestPage) GetContest ¶
func (p *ContestPage) GetContest() (*models.Contest, error)
func (*ContestPage) Hostname ¶ added in v0.1.0
func (p *ContestPage) Hostname() string
func (*ContestPage) IsJoined ¶
func (p *ContestPage) IsJoined() (bool, error)
func (*ContestPage) Join ¶
func (p *ContestPage) Join() error
func (*ContestPage) Navbar ¶
func (p *ContestPage) Navbar() *modules.NavbarModule
func (*ContestPage) Page ¶
func (p *ContestPage) Page() *agouti.Page
func (*ContestPage) TargetPath ¶
func (p *ContestPage) TargetPath() string
type LoginPage ¶
type LoginPage struct {
// contains filtered or unexported fields
}
func (*LoginPage) TargetPath ¶
type SubmissionsPage ¶
type SubmissionsPage struct {
// contains filtered or unexported fields
}
func NewSubmissionsPage ¶
func (*SubmissionsPage) GetSubmission ¶
func (p *SubmissionsPage) GetSubmission(sbmID int) (*models.Submission, error)
func (*SubmissionsPage) GetSubmissions ¶
func (p *SubmissionsPage) GetSubmissions() ([]*models.Submission, error)
func (*SubmissionsPage) Hostname ¶ added in v0.1.0
func (p *SubmissionsPage) Hostname() string
func (*SubmissionsPage) Page ¶
func (p *SubmissionsPage) Page() *agouti.Page
func (*SubmissionsPage) TargetPath ¶
func (p *SubmissionsPage) TargetPath() string
type TaskPage ¶
type TaskPage struct {
// contains filtered or unexported fields
}
func NewTaskPage ¶
func (*TaskPage) TargetPath ¶
type TasksPage ¶
type TasksPage struct {
// contains filtered or unexported fields
}
func (*TasksPage) TargetPath ¶
type TestcasesPage ¶ added in v0.1.0
type TestcasesPage struct {
// contains filtered or unexported fields
}
func NewTestcasesPage ¶ added in v0.1.0
func NewTestcasesPage(page *agouti.Page) (*TestcasesPage, error)
func (*TestcasesPage) GetContestFolderURL ¶ added in v0.1.0
func (p *TestcasesPage) GetContestFolderURL(contestID string) (string, error)
func (*TestcasesPage) Hostname ¶ added in v0.1.0
func (p *TestcasesPage) Hostname() string
func (*TestcasesPage) Page ¶ added in v0.1.0
func (p *TestcasesPage) Page() *agouti.Page
func (*TestcasesPage) TargetPath ¶ added in v0.1.0
func (p *TestcasesPage) TargetPath() string
Click to show internal directories.
Click to hide internal directories.