Documentation ¶
Index ¶
- type CompetitiveBallroomEventViewModel
- type EventViewModel
- type PublicCompetitionServer
- func (server PublicCompetitionServer) GetEventHandler(w http.ResponseWriter, r *http.Request)
- func (server PublicCompetitionServer) GetEventUniqueAgesHandler(w http.ResponseWriter, r *http.Request)
- func (server PublicCompetitionServer) GetEventUniqueDivisionsHandler(w http.ResponseWriter, r *http.Request)
- func (server PublicCompetitionServer) GetEventUniqueProficienciesHandler(w http.ResponseWriter, r *http.Request)
- func (server PublicCompetitionServer) GetEventUniqueStylesHandler(w http.ResponseWriter, r *http.Request)
- func (server PublicCompetitionServer) GetUniqueEventFederationHandler(w http.ResponseWriter, r *http.Request)
- func (server PublicCompetitionServer) SearchCompetitionHandler(w http.ResponseWriter, r *http.Request)
- type SearchCompetitiveBallroomEventViewModel
- type StatusServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompetitiveBallroomEventViewModel ¶
type CompetitiveBallroomEventViewModel struct { ID int `json:"eventID"` // competitive ballroom event id CompetitiveBallroomEventID int `json:"cbeID"` // event id FederationID int `json:"federation"` DivisionID int `json:"division"` AgeID int `json:"age"` ProficiencyID int `json:"proficiency"` StyleID int `json:"style"` Dances []int `json:"dances"` }
type EventViewModel ¶
type PublicCompetitionServer ¶
type PublicCompetitionServer struct { businesslogic.ICompetitionRepository businesslogic.IEventRepository businesslogic.IEventMetaRepository }
func (PublicCompetitionServer) GetEventHandler ¶
func (server PublicCompetitionServer) GetEventHandler(w http.ResponseWriter, r *http.Request)
GET /api/event
func (PublicCompetitionServer) GetEventUniqueAgesHandler ¶
func (server PublicCompetitionServer) GetEventUniqueAgesHandler(w http.ResponseWriter, r *http.Request)
GET /api/competition/age
func (PublicCompetitionServer) GetEventUniqueDivisionsHandler ¶
func (server PublicCompetitionServer) GetEventUniqueDivisionsHandler(w http.ResponseWriter, r *http.Request)
GET /api/competition/division
func (PublicCompetitionServer) GetEventUniqueProficienciesHandler ¶
func (server PublicCompetitionServer) GetEventUniqueProficienciesHandler(w http.ResponseWriter, r *http.Request)
GET /api/competition/proficiency
func (PublicCompetitionServer) GetEventUniqueStylesHandler ¶
func (server PublicCompetitionServer) GetEventUniqueStylesHandler(w http.ResponseWriter, r *http.Request)
GET /api/competition/style
func (PublicCompetitionServer) GetUniqueEventFederationHandler ¶
func (server PublicCompetitionServer) GetUniqueEventFederationHandler(w http.ResponseWriter, r *http.Request)
GET /api/competition/federation
func (PublicCompetitionServer) SearchCompetitionHandler ¶
func (server PublicCompetitionServer) SearchCompetitionHandler(w http.ResponseWriter, r *http.Request)
GET /api/competitions Search competition(s). This controller is invokable without authentication
type SearchCompetitiveBallroomEventViewModel ¶
type SearchCompetitiveBallroomEventViewModel struct { ID int `schema:"id"` CompetitionID int `schema:"competition"` FederationID int `schema:"federation"` DivisionID int `schema:"division"` AgeID int `schema:"age"` ProficiencyID int `schema:"proficiency"` StyleID int `schema:"style"` OpenRegistration bool `schema:"open"` }
type StatusServer ¶
type StatusServer struct {
businesslogic.ICompetitionStatusRepository
}
StatusServer serves the referencedal data for competition status.
func (StatusServer) GetStatusHandler ¶
func (server StatusServer) GetStatusHandler(w http.ResponseWriter, r *http.Request)
GetStatusHandler allows client to get all possibles status of a competition. GET /api/competition/status
Click to show internal directories.
Click to hide internal directories.