controller

package
v0.0.0-...-cfe5dd7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 Auth

type Auth struct {
	dig.In
	Service service.Holder
}

func (*Auth) SignIn

func (impl *Auth) SignIn(c echo.Context) error

func (*Auth) SignUp

func (impl *Auth) SignUp(c echo.Context) error

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

type TourneyManager struct {
	dig.In
	Service service.Holder
}

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) GetCount

func (impl *TourneyManager) GetCount(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

type TourneyRegistry struct {
	dig.In
	Service service.Holder
}

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

Jump to

Keyboard shortcuts

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