Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ScoreboardResponse ¶
type ScoreboardResponse struct { IsFrozen bool `json:"is_frozen"` LastUpdatedAt string `json:"last_updated_at"` Users []ScoreboardUser `json:"users"` }
func Scoreboard ¶
func Scoreboard() (*ScoreboardResponse, error)
type ScoreboardResult ¶
type ScoreboardUser ¶
type ScoreboardUser struct { UserID int `json:"user_id"` TeamName string `json:"team_name"` Results []ScoreboardResult `json:"results"` TotalCost int `json:"total_cost"` SolvedProblemCount int `json:"solved_problem_count"` }
type SubmissionResponse ¶
type SubmissionResponse struct { ID int `json:"id"` ProblemID int `json:"problem_id"` Score int64 `json:"score"` Cost int64 `json:"cost"` Status string `json:"status"` SubmittedAt string `json:"submitted_at"` FileURL string `json:"file_url"` }
func Submission ¶
func Submission(submissionID int) (*SubmissionResponse, error)
type SubmissionsEntry ¶
type SubmissionsResponse ¶
type SubmissionsResponse struct {
Submissions []SubmissionsEntry `json:"submissions"`
}
func Submissions ¶
func Submissions() (*SubmissionsResponse, error)
type SubmitResponse ¶
Click to show internal directories.
Click to hide internal directories.