service

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAgeGroup

func AddAgeGroup(ageGroup model.AgeGroup) (model.AgeGroup, error)

func AddEvent

func AddEvent(event model.Event) (model.Event, error)

func AddFile

func AddFile(file model.StorageFile) (model.StorageFile, error)

func AddLocation

func AddLocation(location model.Location) (model.Location, error)

func AddMeeting

func AddMeeting(meeting model.Meeting) (model.Meeting, error)

func AddMeetingSeries

func AddMeetingSeries(meeting model.MeetingSeries) (model.MeetingSeries, error)

func AddStyle

func AddStyle(style model.Style) (model.Style, error)

func GetAgeGroupById

func GetAgeGroupById(id primitive.ObjectID) (model.AgeGroup, error)

func GetAgeGroupByMeetingAndEventAndAgesAndGender added in v0.4.0

func GetAgeGroupByMeetingAndEventAndAgesAndGender(meeting string, event int, minAge string, maxAge string, gender string) (model.AgeGroup, error)

func GetAgeGroups

func GetAgeGroups() ([]model.AgeGroup, error)

func GetAgeGroupsByMeeting

func GetAgeGroupsByMeeting(meeting string) ([]model.AgeGroup, error)

func GetAgeGroupsByMeetingAndEvent

func GetAgeGroupsByMeetingAndEvent(meeting string, event int) ([]model.AgeGroup, error)

func GetEventById

func GetEventById(id primitive.ObjectID) (model.Event, error)

func GetEventByMeetingAndNumber

func GetEventByMeetingAndNumber(id string, number int) (model.Event, error)

func GetEventByMeetingAndNumberForLivetiming

func GetEventByMeetingAndNumberForLivetiming(id string, number int) (dto.EventLivetimingDto, error)

func GetEvents

func GetEvents() ([]model.Event, error)

func GetEventsAsPartsByMeetId

func GetEventsAsPartsByMeetId(id string) ([]model.MeetingPart, error)

func GetEventsByMeetId

func GetEventsByMeetId(id string) ([]model.Event, error)

func GetFileById

func GetFileById(id primitive.ObjectID) (model.StorageFile, error)

func GetFileByNameAndMeeting

func GetFileByNameAndMeeting(name string, meeting string) (model.StorageFile, error)

func GetFileListByMeeting

func GetFileListByMeeting(meeting string) ([]model.StorageFile, error)

func GetFiles

func GetFiles() ([]model.StorageFile, error)

func GetLocationById

func GetLocationById(id primitive.ObjectID) (model.Location, error)

func GetLocations

func GetLocations() ([]model.Location, error)

func GetMeetingById

func GetMeetingById(id primitive.ObjectID) (model.Meeting, error)

func GetMeetingByMeetId

func GetMeetingByMeetId(id string) (model.Meeting, error)

func GetMeetingSeries

func GetMeetingSeries() ([]model.MeetingSeries, error)

func GetMeetingSeriesById

func GetMeetingSeriesById(id primitive.ObjectID) (model.MeetingSeries, error)

func GetMeetings

func GetMeetings() ([]model.Meeting, error)

func GetMeetingsWithDateBetween

func GetMeetingsWithDateBetween(dateStart time.Time, dateEnd time.Time) ([]model.Meeting, error)

func GetStyleById

func GetStyleById(id primitive.ObjectID) (model.Style, error)

func GetStyleByName

func GetStyleByName(name string) (model.Style, error)

func GetStyles

func GetStyles() ([]model.Style, error)

func ImportAgeGroup

func ImportAgeGroup(group model.AgeGroup) (*model.AgeGroup, bool, error)

func ImportEvent

func ImportEvent(event model.Event, styleName string, PartNumber int) (*model.Event, bool, error)

func IncrementDownloads

func IncrementDownloads(path string) (bool, error)

func Init

func Init(c *mongo.Client)

func PingDatabase

func PingDatabase() bool

func RemoveAgeGroupById

func RemoveAgeGroupById(id primitive.ObjectID) error

func RemoveEventById

func RemoveEventById(id primitive.ObjectID) error

func RemoveFileById

func RemoveFileById(id primitive.ObjectID) error

func RemoveMeetingById

func RemoveMeetingById(id primitive.ObjectID) error

func RemoveMeetingSeriesById

func RemoveMeetingSeriesById(id primitive.ObjectID) error

func RemoveStyleById

func RemoveStyleById(id primitive.ObjectID) error

func SetAgesForAgeGroup

func SetAgesForAgeGroup(group *model.AgeGroup)

func ToggleEventCertification

func ToggleEventCertification(meeting string, eventNumber int) (model.Event, error)

func UpdateAgeGroup

func UpdateAgeGroup(ageGroup model.AgeGroup) (model.AgeGroup, error)

func UpdateEvent

func UpdateEvent(event model.Event) (model.Event, error)

func UpdateEventCertification

func UpdateEventCertification(meeting string, eventNumber int, certified bool) (model.Event, error)

func UpdateFile

func UpdateFile(file model.StorageFile) (model.StorageFile, error)

func UpdateMeeting

func UpdateMeeting(meeting model.Meeting) (model.Meeting, error)

func UpdateMeetingSeries

func UpdateMeetingSeries(meeting model.MeetingSeries) (model.MeetingSeries, error)

func UpdateStyle

func UpdateStyle(style model.Style) (model.Style, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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