Documentation ¶
Index ¶
- func AddAthlete(athlete model.Athlete) (model.Athlete, error)
- func AddParticipation(id primitive.ObjectID, meetId string) (model.Athlete, error)
- func AddTeam(team model.Team) (model.Team, error)
- func AddTeamParticipation(id primitive.ObjectID, meetId string) (model.Team, error)
- func GetAthleteByDsvId(dsvId int) (model.Athlete, error)
- func GetAthleteById(id primitive.ObjectID) (model.Athlete, error)
- func GetAthleteByNameAndTeamAndYear(name string, team string, year int) (model.Athlete, error)
- func GetAthletes(paging Paging) ([]model.Athlete, error)
- func GetAthletesByMeetingId(id string, paging Paging) ([]model.Athlete, error)
- func GetAthletesByTeamId(id primitive.ObjectID, paging Paging) ([]model.Athlete, error)
- func GetTeamByDsvId(dsvId int) (model.Team, error)
- func GetTeamById(id primitive.ObjectID) (model.Team, error)
- func GetTeams(paging Paging) ([]model.Team, error)
- func GetTeamsByMeeting(id string, paging Paging) ([]model.Team, error)
- func ImportAthlete(athlete model.Athlete, meetId string) (*model.Athlete, bool, error)
- func ImportTeam(team model.Team, meetId string) (model.Team, bool, error)
- func Init(c *mongo.Client)
- func PingDatabase() bool
- func RemoveAthleteById(id primitive.ObjectID) error
- func UpdateAthlete(athlete model.Athlete) (model.Athlete, error)
- func UpdateTeam(team model.Team) (model.Team, error)
- type Paging
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddParticipation ¶
func AddTeamParticipation ¶
func GetAthleteByNameAndTeamAndYear ¶ added in v1.0.0
func GetAthletesByMeetingId ¶
func GetAthletesByTeamId ¶
func ImportAthlete ¶
func PingDatabase ¶
func PingDatabase() bool
func RemoveAthleteById ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.