competition

package
v0.0.0-...-99b79bc Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 EventViewModel struct {
	ID            int    `json:"id"`
	CompetitionID int    `json:"competition"`
	Category      int    `json:"category"`
	Description   string `json:"description"`
	StatusID      int    `json:"status"`
}

type PublicCompetitionServer

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

Jump to

Keyboard shortcuts

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