Documentation ¶
Index ¶
- func AddDisqualification(disqualification model.Disqualification) (model.Disqualification, error)
- func AddHeat(heat model.Heat) (model.Heat, error)
- func AddRegistration(registration model.Registration) (model.Registration, error)
- func AddStart(start model.Start) (model.Start, error)
- func GetCurrentAndNextHeat(meeting string) (*dto.CurrentNextHeatDto, error)
- func GetCurrentHeat(meeting string) (model.Heat, error)
- func GetCurrentStarts(meeting string) ([]model.Start, error)
- func GetDisqualificationById(id primitive.ObjectID) (model.Disqualification, error)
- func GetDisqualifications() ([]model.Disqualification, error)
- func GetHeatById(id primitive.ObjectID) (model.Heat, error)
- func GetHeatByNumber(meeting string, event int, number int) (model.Heat, error)
- func GetHeatInfoByMeeting(meeting string) (dto.MeetingHeatInfoDto, error)
- func GetHeatInfoByMeetingAndEvent(meeting string, event int) (dto.EventHeatInfoDto, error)
- func GetHeats() ([]model.Heat, error)
- func GetHeatsAmount() (int, error)
- func GetHeatsAmountByMeeting(meeting string) (int, error)
- func GetHeatsAmountByMeetingAndEvent(meeting string, event int) (int, error)
- func GetHeatsByMeeting(id string) ([]model.Heat, error)
- func GetHeatsByMeetingAndEvent(id string, event int) ([]model.Heat, error)
- func GetHeatsByMeetingAndEvents(id string, events []int) ([]model.Heat, error)
- func GetHeatsByMeetingForEventList(meeting string) (dto.MeetingHeatsEventListDto, error)
- func GetHeatsByMeetingForEventListEvents(meeting string, events []int) (dto.MeetingHeatsEventListDto, error)
- func GetLivestreamData(meeting string) (*dto.LivestreamDto, error)
- func GetLivestreamHeatState(meeting string) (*dto.LivestreamHeatStateDto, error)
- func GetRegistrationById(id primitive.ObjectID) (model.Registration, error)
- func GetRegistrationByMeetingAndUser(meeting string, userId primitive.ObjectID) (model.Registration, error)
- func GetRegistrationsByMeeting(meeting string) ([]model.Registration, error)
- func GetStartById(id primitive.ObjectID) (model.Start, error)
- func GetStartByMeetingAndEventAndAthleteId(meeting string, event int, athleteId primitive.ObjectID) (model.Start, error)
- func GetStartByMeetingAndEventAndAthleteMeetingId(meeting string, event int, athleteMeetingId int) (model.Start, error)
- func GetStartByMeetingAndEventAndAthleteNameAndYear(meeting string, event int, athleteName string, year int) (model.Start, error)
- func GetStartByMeetingAndEventAndHeatAndLane(meeting string, event int, heat int, lane int) (model.Start, error)
- func GetStartFromImport(start model.Start) (model.Start, bool, error)
- func GetStarts() ([]model.Start, error)
- func GetStartsAmount() (int, error)
- func GetStartsAmountByMeeting(meeting string) (int, error)
- func GetStartsByAthlete(athlete primitive.ObjectID) ([]model.Start, error)
- func GetStartsByMeeting(meeting string) ([]model.Start, error)
- func GetStartsByMeetingAndAthlete(meeting string, athlete primitive.ObjectID) ([]model.Start, error)
- func GetStartsByMeetingAndEvent(meeting string, event int) ([]model.Start, error)
- func GetStartsByMeetingAndEventAndHeat(meeting string, event int, heat int) ([]model.Start, error)
- func GetStartsByMeetingAndEventAsResults(meeting string, event int) ([]dto.EventStartResultRequestDto, error)
- func ImportDisqualification(start model.Start, disqualification model.Disqualification) (*model.Disqualification, bool, error)
- func ImportHeat(heat model.Heat) (model.Heat, bool, error)
- func ImportResult(start model.Start, result model.Result) (*model.Result, bool, error)
- func ImportStart(start model.Start) (*model.Start, bool, error)
- func Init(c *mongo.Client)
- func PingDatabase() bool
- func RemoveDisqualificationById(id primitive.ObjectID) error
- func RemoveHeatById(id primitive.ObjectID) error
- func RemoveRegistrationById(id primitive.ObjectID) error
- func RemoveStartById(id primitive.ObjectID) error
- func SetHeatStartToNowByNumber(meeting string, event int, number int) (model.Heat, error)
- func UpdateDisqualification(disqualification model.Disqualification) (model.Disqualification, error)
- func UpdateHeat(heat model.Heat) (model.Heat, error)
- func UpdateHeatEstimationDate(id primitive.ObjectID, t time.Time) (model.Heat, error)
- func UpdateHeatTimes(id primitive.ObjectID, time time.Time, timeType string) (model.Heat, error)
- func UpdateHeatsEstimationDateByMeetingAndEvent(meeting string, events []int, t time.Time, updateTimeZone bool) ([]model.Heat, error)
- func UpdateRegistration(registration model.Registration) (model.Registration, error)
- func UpdateStart(start model.Start) (model.Start, error)
- func UpdateStartAddResult(startId primitive.ObjectID, result model.Result) (model.Result, error)
- func UpdateStartSetDisqualification(startId primitive.ObjectID, disqualificationId primitive.ObjectID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDisqualification ¶
func AddDisqualification(disqualification model.Disqualification) (model.Disqualification, error)
func AddRegistration ¶ added in v0.5.0
func AddRegistration(registration model.Registration) (model.Registration, error)
func GetCurrentAndNextHeat ¶ added in v0.5.0
func GetCurrentAndNextHeat(meeting string) (*dto.CurrentNextHeatDto, error)
func GetCurrentStarts ¶ added in v0.2.0
func GetDisqualificationById ¶
func GetDisqualificationById(id primitive.ObjectID) (model.Disqualification, error)
func GetDisqualifications ¶
func GetDisqualifications() ([]model.Disqualification, error)
func GetHeatByNumber ¶
func GetHeatInfoByMeeting ¶ added in v0.2.0
func GetHeatInfoByMeeting(meeting string) (dto.MeetingHeatInfoDto, error)
func GetHeatInfoByMeetingAndEvent ¶ added in v0.2.0
func GetHeatInfoByMeetingAndEvent(meeting string, event int) (dto.EventHeatInfoDto, error)
func GetHeatsAmount ¶ added in v0.5.0
func GetHeatsAmountByMeeting ¶ added in v0.5.0
func GetHeatsAmountByMeetingAndEvent ¶ added in v0.3.0
func GetHeatsByMeetingAndEvent ¶ added in v0.5.0
func GetHeatsByMeetingAndEvents ¶ added in v0.5.0
func GetHeatsByMeetingForEventList ¶ added in v0.3.0
func GetHeatsByMeetingForEventList(meeting string) (dto.MeetingHeatsEventListDto, error)
func GetHeatsByMeetingForEventListEvents ¶ added in v0.5.0
func GetHeatsByMeetingForEventListEvents(meeting string, events []int) (dto.MeetingHeatsEventListDto, error)
func GetLivestreamData ¶ added in v0.5.0
func GetLivestreamData(meeting string) (*dto.LivestreamDto, error)
func GetLivestreamHeatState ¶ added in v0.5.0
func GetLivestreamHeatState(meeting string) (*dto.LivestreamHeatStateDto, error)
func GetRegistrationById ¶ added in v0.5.0
func GetRegistrationById(id primitive.ObjectID) (model.Registration, error)
func GetRegistrationByMeetingAndUser ¶ added in v0.5.0
func GetRegistrationsByMeeting ¶ added in v0.5.0
func GetRegistrationsByMeeting(meeting string) ([]model.Registration, error)
func GetStartsAmount ¶ added in v0.2.0
func GetStartsAmountByMeeting ¶ added in v0.5.0
func GetStartsByAthlete ¶
func GetStartsByMeetingAndEventAsResults ¶ added in v0.5.0
func GetStartsByMeetingAndEventAsResults(meeting string, event int) ([]dto.EventStartResultRequestDto, error)
func ImportDisqualification ¶
func ImportDisqualification(start model.Start, disqualification model.Disqualification) (*model.Disqualification, bool, error)
func ImportHeat ¶
ImportHeat imports a heat; returns the created or existing heat and a boolean if it was created or already present
func ImportResult ¶
func PingDatabase ¶
func PingDatabase() bool
func RemoveHeatById ¶
func RemoveRegistrationById ¶ added in v0.5.0
func RemoveStartById ¶
func SetHeatStartToNowByNumber ¶ added in v0.5.0
func UpdateDisqualification ¶
func UpdateDisqualification(disqualification model.Disqualification) (model.Disqualification, error)
func UpdateHeatEstimationDate ¶ added in v0.5.0
func UpdateHeatTimes ¶ added in v0.4.0
func UpdateHeatsEstimationDateByMeetingAndEvent ¶ added in v0.5.0
func UpdateRegistration ¶ added in v0.5.0
func UpdateRegistration(registration model.Registration) (model.Registration, error)
func UpdateStartAddResult ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.