match

package
v0.0.0-...-d76558d Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUseCase

type IUseCase interface {
	GetMatchByID(ctx context.Context, id int32) (db.Match, error)
	GetMatches(ctx context.Context) ([]db.Match, error)
	GetUpcomingMatchByTournament(ctx context.Context, tournamentID int32) ([][]db.GetUpcomingMatchesByTournamentRow, error)
}

func NewUseCase

func NewUseCase(dbConn *pgxpool.Pool) IUseCase

type UseCase

type UseCase struct {
	// contains filtered or unexported fields
}

func (*UseCase) GetMatchByID

func (u *UseCase) GetMatchByID(_ context.Context, _ int32) (db.Match, error)

func (*UseCase) GetMatches

func (u *UseCase) GetMatches(_ context.Context) ([]db.Match, error)

func (*UseCase) GetUpcomingMatchByTournament

func (u *UseCase) GetUpcomingMatchByTournament(ctx context.Context, tournamentID int32) ([][]db.GetUpcomingMatchesByTournamentRow, error)

Jump to

Keyboard shortcuts

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