model

package
v0.0.0-...-99ae8b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contest

type Contest struct {
	ID                  int    `json:"id"`
	Name                string `json:"name"`
	Type                string `json:"type"`
	Phase               string `json:"phase"`
	Frozen              bool   `json:"frozen"`
	DurationSeconds     int    `json:"durationSeconds"`
	StartTimeSeconds    int    `json:"startTimeSeconds"`
	RelativeTimeSeconds int    `json:"relativeTimeSeconds"`
}

type ExecParam

type ExecParam struct {
	Lang      string
	TimeLimit int
}

type Language

type Language struct {
	// Name of the Language
	Name string

	// Compiler Used in
	Compiler map[string]string

	// Extension of file for the language
	Extension string

	// Build flags to compile and build the source code
	BuildFlags string

	// Output file extension
	OutputFileExtension map[string]string
}

type Members

type Members struct {
	Handle string `json:"handle"`
}

type Party

type Party struct {
	ContestID        int       `json:"contestId"`
	Members          []Members `json:"members"`
	ParticipantType  string    `json:"participantType"`
	TeamID           int       `json:"teamId"`
	TeamName         string    `json:"teamName"`
	Ghost            bool      `json:"ghost"`
	Room             int       `json:"room"`
	StartTimeSeconds int       `json:"startTimeSeconds"`
}

type ProblemResults

type ProblemResults struct {
	Points                    float64 `json:"points"`
	RejectedAttemptCount      int     `json:"rejectedAttemptCount"`
	Type                      string  `json:"type"`
	BestSubmissionTimeSeconds int     `json:"bestSubmissionTimeSeconds,omitempty"`
}

type Problems

type Problems struct {
	ContestID int      `json:"contestId"`
	Index     string   `json:"index"`
	Name      string   `json:"name"`
	Type      string   `json:"type"`
	Points    float64  `json:"points"`
	Rating    int      `json:"rating"`
	Tags      []string `json:"tags"`
}

type Result

type Result struct {
	Contest  Contest    `json:"contest"`
	Problems []Problems `json:"problems"`
	Rows     []Rows     `json:"rows"`
}

type Row

type Row struct {
}

type Rows

type Rows struct {
	Party                 Party            `json:"party,omitempty"`
	Rank                  int              `json:"rank"`
	Points                float64          `json:"points"`
	Penalty               int              `json:"penalty"`
	SuccessfulHackCount   int              `json:"successfulHackCount"`
	UnsuccessfulHackCount int              `json:"unsuccessfulHackCount"`
	ProblemResults        []ProblemResults `json:"problemResults"`
}

type Standings

type Standings struct {
	Status  string `json:"status"`
	Comment string `json:"comment"`
	Result  Result `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL