Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contest ¶
type Contest struct { Rounds map[string]*Round `yaml:"-"` Ranking map[string]uint `yaml:"-"` Name string `yaml:"name"` Key string `yaml:"key"` // contains filtered or unexported fields }
Contest holds rounds in contest and groups allowed to participate
type Round ¶
type Round struct { Name string Tasks []string Start time.Time End time.Time ResultsShow time.Time Ranking RoundRanking // contains filtered or unexported fields }
Round has tasks, start time, end time and time when results will be show
func (*Round) GetSubmission ¶
GetSubmission return submission with given id
func (*Round) ListSubmissions ¶
func (r *Round) ListSubmissions(login string, task string) []*tasks.Submission
ListSubmissions is used in command list_submissions to (surprise!) list submissions
type RoundRanking ¶
RoundRanking hold ranking as a two-dimensional array and additional slice contains columns description (tasks names). First columns is sum of row (labeled as "Sum")
Click to show internal directories.
Click to hide internal directories.