Documentation
¶
Index ¶
- Constants
- type Auth
- type CustomValidator
- type Holder
- type TourneyManager
- func (impl *TourneyManager) CreateTourney(c echo.Context) error
- func (impl *TourneyManager) GetAllGames(c echo.Context) error
- func (impl *TourneyManager) GetAllTourney(c echo.Context) error
- func (impl *TourneyManager) GetAllTourneyByGameID(c echo.Context) error
- func (impl *TourneyManager) GetCount(c echo.Context) error
- func (impl *TourneyManager) GetGameById(c echo.Context) error
- func (impl *TourneyManager) GetTourneyById(c echo.Context) error
- type TourneyRegistry
Constants ¶
View Source
const ( PrefixAuthAPI = "/api/auth" PrefixTourneyManagerAPI = "/api/tourney-manager" PrefixTourneyRegistryAPI = "/api/tourney-registry" SignUpAPI = "/sign-up" SignInAPI = "/sign-in" CreateTournamentAPI = "/tournament" GetTournamentByIDAPI = "/tournament/:id" GetTournamentsAPI = "/tournaments" GetTournamentsByGameIDAPI = "/tournaments/:gameID" GetGameByIDAPI = "/game/:id" GetGamesAPI = "/games" GetCountAPI = "/get-count/:id" JoinTournamentAPI = "/join" GetParticipantsByTourneyIDAPI = "/participants/:tourneyID" GetTournamentsByCaptainIDAPI = "/tournaments" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomValidator ¶
type CustomValidator struct {
// contains filtered or unexported fields
}
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
type Holder ¶
type Holder struct {
dig.In
Deps shared.Deps
Auth Auth
TourneyManager TourneyManager
TourneyRegistry TourneyRegistry
}
func (*Holder) RegisterRoutes ¶
func (h *Holder) RegisterRoutes()
type TourneyManager ¶
func (*TourneyManager) CreateTourney ¶
func (impl *TourneyManager) CreateTourney(c echo.Context) error
func (*TourneyManager) GetAllGames ¶
func (impl *TourneyManager) GetAllGames(c echo.Context) error
func (*TourneyManager) GetAllTourney ¶
func (impl *TourneyManager) GetAllTourney(c echo.Context) error
func (*TourneyManager) GetAllTourneyByGameID ¶
func (impl *TourneyManager) GetAllTourneyByGameID(c echo.Context) error
func (*TourneyManager) GetGameById ¶
func (impl *TourneyManager) GetGameById(c echo.Context) error
func (*TourneyManager) GetTourneyById ¶
func (impl *TourneyManager) GetTourneyById(c echo.Context) error
type TourneyRegistry ¶
func (*TourneyRegistry) GetAllParticipantsByTourneyID ¶
func (impl *TourneyRegistry) GetAllParticipantsByTourneyID(c echo.Context) error
func (*TourneyRegistry) GetAllTourneysByCaptainID ¶
func (impl *TourneyRegistry) GetAllTourneysByCaptainID(c echo.Context) error
func (*TourneyRegistry) JoinTourney ¶
func (impl *TourneyRegistry) JoinTourney(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.