Documentation
¶
Index ¶
- func CloneContest(title string, id string, duration string)
- func CreateContest(title string, duration string, problems []string)
- func GetContestCountdown(contestId string) int
- func GetSample(contest string, index string) ([]string, []string)
- func GetStatus() map[string]bool
- func Login()
- func ManuallyLogin()
- func QueryProbelmId(problem string) (string, error)
- func QueryStatus(handle string) map[string]bool
- func SaveStatus(handle string)
- func SubmitCode(contest string, index string, code []byte, programTypeId string)
- type ContestInfo
- type ContestStandingInterface
- type ContestStandingResult
- type Problem
- type ProblemInfo
- type ProblemInfos
- type ProblemJson
- type Status
- type UsersStatusApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneContest ¶
func CreateContest ¶
func GetContestCountdown ¶
func ManuallyLogin ¶
func ManuallyLogin()
func QueryProbelmId ¶
func QueryStatus ¶
func SaveStatus ¶
func SaveStatus(handle string)
Types ¶
type ContestInfo ¶
type ContestStandingInterface ¶
type ContestStandingInterface struct { Status string `json:"status"` Result ContestStandingResult `json:"result"` Comment string `json:"comment"` }
type ContestStandingResult ¶
type ContestStandingResult struct { Problems []Problem `json:"problems"` Contest ContestInfo `json:"contest"` }
func GetContestInfo ¶
func GetContestInfo(contestId string) ContestStandingResult
type ProblemInfo ¶
type ProblemInfo struct { EnglishName string `json:"englishName"` Id string `json:"id"` LocalizedName string `json:"localizedName"` Rating int `json:"rating"` RussianName string `json:"russianName"` SolutionsUrl string `json:"solutionsUrl"` SolvedCount int `json:"solvedCount"` StatementUrl string `json:"statementUrl"` Tags []string `json:"tags"` }
type ProblemInfos ¶
type ProblemInfos struct { Problems []ProblemInfo `json:"problems"` Success string `json:"success"` }
type ProblemJson ¶
type Status ¶
type Status struct { Problem Problem `json:"problem"` // Id int `json:"id"` // ContestId int `json:"contestId"` // CreationTimeSeconds int `json:"creationTimeSeconds"` // RelativeTimeSeconds int `json:"relativeTimeSeconds"` // Author any `json:"author"` // ProgrammingLanguage string `json:"programmingLanguage"` Verdict string `json:"verdict"` }
type UsersStatusApi ¶
Click to show internal directories.
Click to hide internal directories.