Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AthleteRegistration ¶ added in v0.5.0
type AthleteRegistration struct { AthleteId primitive.ObjectID `json:"athlete_id,omitempty" bson:"athlete_id,omitempty"` AthleteFirstName string `json:"athlete_first_name,omitempty" bson:"athlete_first_name,omitempty"` AthleteLastName string `json:"athlete_last_name,omitempty" bson:"athlete_last_name,omitempty"` AthleteYear int `json:"athlete_year,omitempty" bson:"athlete_year,omitempty"` StartRegistrations []StartRegistration `json:"start_registrations" bson:"start_registrations"` }
type Disqualification ¶
type Disqualification struct { Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` // automatically Type string `json:"type,omitempty" bson:"type,omitempty"` // PDF + DSV types: 'dns, disqualified, dnf, time' Reason string `json:"reason,omitempty" bson:"reason,omitempty"` // PDF + DSV AnnouncementTime time.Time `json:"announcement_time,omitempty" bson:"announcement_time,omitempty"` // PDF + DSV AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"` // automatically }
type Heat ¶
type Heat struct { Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` // automatically Meeting string `json:"meeting,omitempty" bson:"meeting,omitempty"` // automatically Event int `json:"event,omitempty" bson:"event,omitempty"` // PDF + DSV Number int `json:"number,omitempty" bson:"number,omitempty"` // PDF + DSV StartEstimation time.Time `json:"start_estimation,omitempty" bson:"start_estimation,omitempty"` // PDF estimation from start list StartDelayEstimation time.Time `json:"start_delay_estimation,omitempty" bson:"start_delay_estimation,omitempty"` // manual calculation of delay estimation from delay StartAt time.Time `json:"start_at,omitempty" bson:"start_at,omitempty"` // automatically actual moment when it started FinishedAt time.Time `json:"finished_at,omitempty" bson:"finished_at,omitempty"` // automatically actual moment when it finished }
type Registration ¶ added in v0.5.0
type Registration struct { Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` Meeting string `json:"meeting" bson:"meeting"` CreatorUserId primitive.ObjectID `json:"creator_user_id,omitempty" bson:"creator_user_id,omitempty"` Address model.Address `json:"address,omitempty" bson:"address,omitempty"` Contact model.Contact `json:"contact,omitempty" bson:"contact,omitempty"` AthleteRegistrations []AthleteRegistration `json:"athlete_registrations" bson:"athlete_registrations"` AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"` UpdatedAt time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"` }
type Result ¶
type Result struct { Time time.Duration `json:"time,omitempty" bson:"time,omitempty"` // PDF + DSV + Livetiming ResultType string `json:"result_type,omitempty" bson:"result_type,omitempty"` // registration; livetiming_result; result_list; reaction; lap; LapMeters int `json:"lap_meters,omitempty" bson:"lap_meters,omitempty"` // 25; 50; 75; 100; 125; 150; 175; AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"` // automatically }
type Start ¶
type Start struct { Identifier primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` // automatically Meeting string `json:"meeting,omitempty" bson:"meeting,omitempty"` // import service Event int `json:"event,omitempty" bson:"event,omitempty"` // PDF + DSV HeatNumber int `json:"heat_number" bson:"heat,omitempty"` // PDF (update on import) Heat Heat `json:"heat,omitempty" bson:"-"` // automatically Lane int `json:"lane,omitempty" bson:"lane,omitempty"` // PDF (update on import) IsRelay bool `json:"is_relay,omitempty" bson:"is_relay,omitempty"` // PDF (update on import) Athlete primitive.ObjectID `json:"athlete,omitempty" bson:"athlete,omitempty"` // PDF + DSV (via athlete) AthleteMeetingId int `json:"athlete_meeting_id,omitempty" bson:"athlete_meeting_id,omitempty"` // DSV (update on import) AthleteName string `json:"athlete_name,omitempty" bson:"athlete_name,omitempty"` // PDF + DSV (+ Livetiming) AthleteAlias string `json:"athlete_alias,omitempty" bson:"athlete_alias,omitempty"` // automatically AthleteYear int `json:"athlete_year,omitempty" bson:"athlete_year,omitempty"` // PDF + DSV AthleteTeam primitive.ObjectID `json:"athlete_team,omitempty" bson:"athlete_team,omitempty"` // PDF + DSV (+ Livetiming) AthleteTeamName string `json:"athlete_team_name,omitempty" bson:"athlete_team_name,omitempty"` // PDF + DSV Rank int `json:"rank,omitempty" bson:"rank,omitempty"` // PDF + DSV (update on import) Points int `json:"points,omitempty" bson:"points,omitempty"` // PDF + DSV (update on import) Certified bool `json:"certified,omitempty" bson:"certified,omitempty"` // PDF + DSV (update on import) Results []Result `json:"results,omitempty" bson:"results,omitempty"` // PDF + DSV + Livetiming DisqualificationId primitive.ObjectID `json:"-" bson:"disqualification_id,omitempty"` // automatically Disqualification Disqualification `json:"disqualification,omitempty" bson:"-"` // PDF + DSV AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"` // automatically UpdatedAt time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"` // automatically }
type StartRegistration ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.