Documentation
¶
Index ¶
Constants ¶
View Source
const ( Active status = "ACTIVE" Closed status = "CLOSED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClimbingType ¶
type ClimbingType string
const ( Boulder ClimbingType = "BOULDER" Lead ClimbingType = "LEAD" )
type Competition ¶
type CompetitionDetail ¶
type CompetitionDetail struct {
ID int64 `json:"id"`
Name string `json:"name"`
Status string `json:"status"`
Sections map[string]Section `json:"sections"`
Partitions []Partition `json:"partitions"`
}
func (CompetitionDetail) IsEmpty ¶
func (cd CompetitionDetail) IsEmpty() bool
func (CompetitionDetail) IsFinished ¶
func (cd CompetitionDetail) IsFinished() bool
type Partition ¶
type Partition struct {
Tags string `json:"tags"`
Gender PartitionGender `json:"gender"`
AgeGroup string `json:"ageGroup"`
ClimbingType ClimbingType `json:"climbingType"`
Sections []int64 `json:"sections"`
Results []Result `json:"results"`
}
type PartitionGender ¶
type PartitionGender string
const ( Female PartitionGender = "FEMALE" Male PartitionGender = "MALE" )
type RouteResult ¶
type SectionResult ¶
type SectionResult struct {
Section int64 `json:"section"`
Points int64 `json:"points"`
Tops int64 `json:"tops"`
Zones int64 `json:"zones"`
TopTries int64 `json:"topTries"`
ZoneTries int64 `json:"zoneTries"`
RouteResults []RouteResult `json:"routeResults"`
}
func (SectionResult) HasValidBoulderResult ¶
func (sr SectionResult) HasValidBoulderResult() bool
func (SectionResult) HasValidLeadResult ¶
func (sr SectionResult) HasValidLeadResult() bool
Click to show internal directories.
Click to hide internal directories.