service

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDisqualification

func AddDisqualification(disqualification model.Disqualification) (model.Disqualification, error)

func AddHeat

func AddHeat(heat model.Heat) (model.Heat, error)

func AddRegistration added in v0.5.0

func AddRegistration(registration model.Registration) (model.Registration, error)

func AddStart

func AddStart(start model.Start) (model.Start, error)

func GetCurrentAndNextHeat added in v0.5.0

func GetCurrentAndNextHeat(meeting string) (*dto.CurrentNextHeatDto, error)

func GetCurrentHeat added in v0.2.0

func GetCurrentHeat(meeting string) (model.Heat, error)

func GetCurrentStarts added in v0.2.0

func GetCurrentStarts(meeting string) ([]model.Start, error)

func GetDisqualificationById

func GetDisqualificationById(id primitive.ObjectID) (model.Disqualification, error)

func GetDisqualifications

func GetDisqualifications() ([]model.Disqualification, error)

func GetHeatById

func GetHeatById(id primitive.ObjectID) (model.Heat, error)

func GetHeatByNumber

func GetHeatByNumber(meeting string, event int, number int) (model.Heat, error)

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 GetHeats

func GetHeats() ([]model.Heat, error)

func GetHeatsAmount added in v0.5.0

func GetHeatsAmount() (int, error)

func GetHeatsAmountByMeeting added in v0.5.0

func GetHeatsAmountByMeeting(meeting string) (int, error)

func GetHeatsAmountByMeetingAndEvent added in v0.3.0

func GetHeatsAmountByMeetingAndEvent(meeting string, event int) (int, error)

func GetHeatsByMeeting

func GetHeatsByMeeting(id string) ([]model.Heat, error)

func GetHeatsByMeetingAndEvent added in v0.5.0

func GetHeatsByMeetingAndEvent(id string, event int) ([]model.Heat, error)

func GetHeatsByMeetingAndEvents added in v0.5.0

func GetHeatsByMeetingAndEvents(id string, events []int) ([]model.Heat, error)

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 GetRegistrationByMeetingAndUser(meeting string, userId primitive.ObjectID) (model.Registration, error)

func GetRegistrationsByMeeting added in v0.5.0

func GetRegistrationsByMeeting(meeting string) ([]model.Registration, error)

func GetStartById

func GetStartById(id primitive.ObjectID) (model.Start, error)

func GetStartByMeetingAndEventAndAthleteId

func GetStartByMeetingAndEventAndAthleteId(meeting string, event int, athleteId primitive.ObjectID) (model.Start, error)

func GetStartByMeetingAndEventAndAthleteMeetingId

func GetStartByMeetingAndEventAndAthleteMeetingId(meeting string, event int, athleteMeetingId int) (model.Start, error)

func GetStartByMeetingAndEventAndAthleteNameAndYear

func GetStartByMeetingAndEventAndAthleteNameAndYear(meeting string, event int, athleteName string, year int) (model.Start, error)

func GetStartByMeetingAndEventAndHeatAndLane

func GetStartByMeetingAndEventAndHeatAndLane(meeting string, event int, heat int, lane int) (model.Start, error)

func GetStartFromImport

func GetStartFromImport(start model.Start) (model.Start, bool, error)

func GetStarts

func GetStarts() ([]model.Start, error)

func GetStartsAmount added in v0.2.0

func GetStartsAmount() (int, error)

func GetStartsAmountByMeeting added in v0.5.0

func GetStartsAmountByMeeting(meeting string) (int, error)

func GetStartsByAthlete

func GetStartsByAthlete(athlete primitive.ObjectID) ([]model.Start, error)

func GetStartsByMeeting

func GetStartsByMeeting(meeting string) ([]model.Start, error)

func GetStartsByMeetingAndAthlete

func GetStartsByMeetingAndAthlete(meeting string, athlete primitive.ObjectID) ([]model.Start, error)

func GetStartsByMeetingAndEvent

func GetStartsByMeetingAndEvent(meeting string, event int) ([]model.Start, error)

func GetStartsByMeetingAndEventAndHeat

func GetStartsByMeetingAndEventAndHeat(meeting string, event int, heat int) ([]model.Start, error)

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

func ImportHeat(heat model.Heat) (model.Heat, bool, error)

ImportHeat imports a heat; returns the created or existing heat and a boolean if it was created or already present

func ImportResult

func ImportResult(start model.Start, result model.Result) (*model.Result, bool, error)

func ImportStart

func ImportStart(start model.Start) (*model.Start, bool, error)

func Init

func Init(c *mongo.Client)

func PingDatabase

func PingDatabase() bool

func RemoveDisqualificationById

func RemoveDisqualificationById(id primitive.ObjectID) error

func RemoveHeatById

func RemoveHeatById(id primitive.ObjectID) error

func RemoveRegistrationById added in v0.5.0

func RemoveRegistrationById(id primitive.ObjectID) error

func RemoveStartById

func RemoveStartById(id primitive.ObjectID) error

func SetHeatStartToNowByNumber added in v0.5.0

func SetHeatStartToNowByNumber(meeting string, event int, number int) (model.Heat, error)

func UpdateDisqualification

func UpdateDisqualification(disqualification model.Disqualification) (model.Disqualification, error)

func UpdateHeat

func UpdateHeat(heat model.Heat) (model.Heat, error)

func UpdateHeatEstimationDate added in v0.5.0

func UpdateHeatEstimationDate(id primitive.ObjectID, t time.Time) (model.Heat, error)

func UpdateHeatTimes added in v0.4.0

func UpdateHeatTimes(id primitive.ObjectID, time time.Time, timeType string) (model.Heat, error)

func UpdateHeatsEstimationDateByMeetingAndEvent added in v0.5.0

func UpdateHeatsEstimationDateByMeetingAndEvent(meeting string, events []int, t time.Time, updateTimeZone bool) ([]model.Heat, error)

func UpdateRegistration added in v0.5.0

func UpdateRegistration(registration model.Registration) (model.Registration, error)

func UpdateStart

func UpdateStart(start model.Start) (model.Start, error)

func UpdateStartAddResult

func UpdateStartAddResult(startId primitive.ObjectID, result model.Result) (model.Result, error)

func UpdateStartSetDisqualification

func UpdateStartSetDisqualification(startId primitive.ObjectID, disqualificationId primitive.ObjectID) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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