Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(endpoint string, options ...ClientOption) *Client
NewClient returns new API client.
type ClientOption ¶
type ClientOption func(*Client)
type Contest ¶
type Judgement ¶
type Judgement struct {
ID ID `json:"id"`
SubmissionID ID `json:"submission_id"`
JudgementTypeID string `json:"judgement_type_id,omitempty"`
StartTime Time `json:"start_time"`
StartContestTime RelTime `json:"start_contest_time"`
EndTime Time `json:"end_time"`
EndContestTime RelTime `json:"end_contest_time"`
}
type JudgementType ¶
type JudgementType struct {
ID string `json:"id"`
Name string `json:"name"`
Penalty bool `json:"penalty"`
Solved bool `json:"solved"`
}
func (JudgementType) Kind ¶
func (e JudgementType) Kind() string
func (JudgementType) ObjectID ¶
func (e JudgementType) ObjectID() any
func (JudgementType) Token ¶ added in v0.1.9
func (e JudgementType) Token() string
type Language ¶
type Organization ¶
func (Organization) Kind ¶
func (e Organization) Kind() string
func (Organization) ObjectID ¶
func (e Organization) ObjectID() any
func (Organization) Token ¶ added in v0.1.9
func (e Organization) Token() string
type Problem ¶
type State ¶
type Submission ¶
type Submission struct {
ID ID `json:"id"`
TeamID ID `json:"team_id"`
ProblemID ID `json:"problem_id"`
LanguageID ID `json:"language_id"`
Time Time `json:"time"`
ContestTime RelTime `json:"contest_time"`
}
func (Submission) Kind ¶
func (e Submission) Kind() string
func (Submission) ObjectID ¶
func (e Submission) ObjectID() any
func (Submission) Token ¶ added in v0.1.9
func (e Submission) Token() string
type Team ¶
type Time ¶
func (Time) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.