Documentation ¶
Index ¶
- type IUseCase
- type UseCase
- func (u *UseCase) CreateTournament(ctx context.Context, tournament db.CreateTournamentParams) (db.Tournament, error)
- func (u *UseCase) CreateTournamentFromLichessID(ctx context.Context, lichessID string) (db.Tournament, error)
- func (u *UseCase) GetTournamentByID(ctx context.Context, id int32) (db.Tournament, error)
- func (u *UseCase) GetTournaments(_ context.Context) ([]db.Tournament, error)
- func (u *UseCase) GetTournamentsInProgress(ctx context.Context) ([]db.Tournament, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUseCase ¶
type IUseCase interface { GetTournamentByID(ctx context.Context, id int32) (db.Tournament, error) GetTournaments(ctx context.Context) ([]db.Tournament, error) CreateTournament(ctx context.Context, tournament db.CreateTournamentParams) (db.Tournament, error) CreateTournamentFromLichessID(ctx context.Context, lichessID string) (db.Tournament, error) GetTournamentsInProgress(ctx context.Context) ([]db.Tournament, error) }
func NewUseCase ¶
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) CreateTournament ¶
func (u *UseCase) CreateTournament(ctx context.Context, tournament db.CreateTournamentParams) (db.Tournament, error)
func (*UseCase) CreateTournamentFromLichessID ¶
func (*UseCase) GetTournamentByID ¶
func (*UseCase) GetTournaments ¶
func (*UseCase) GetTournamentsInProgress ¶
Click to show internal directories.
Click to hide internal directories.