Documentation ¶
Index ¶
- func NewPastGamesRouter() http.Handler
- type ErrPastGameNotFound
- type GormPastGameRepository
- func (repo *GormPastGameRepository) AddPastGame(game models.PastGame) (uint, error)
- func (repo *GormPastGameRepository) BrowsePastGamesByID(query string) ([]models.PastGame, error)
- func (repo *GormPastGameRepository) GetAllPastGames() ([]models.PastGame, error)
- func (repo *GormPastGameRepository) GetPastGameByID(id uint) (models.PastGame, error)
- type PastGameRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPastGamesRouter ¶
NewPastGamesRouter sets up the routes for the pastgames package.
Types ¶
type ErrPastGameNotFound ¶
type ErrPastGameNotFound struct{}
func (ErrPastGameNotFound) Error ¶
func (ErrPastGameNotFound) Error() string
type GormPastGameRepository ¶
InMemoryPastGameRepository In-mem store for past games
var PastGamesRepo *GormPastGameRepository
func NewGormPastGameRepository ¶
func NewGormPastGameRepository(db *gorm.DB) *GormPastGameRepository
func (*GormPastGameRepository) AddPastGame ¶
func (repo *GormPastGameRepository) AddPastGame(game models.PastGame) (uint, error)
func (*GormPastGameRepository) BrowsePastGamesByID ¶
func (repo *GormPastGameRepository) BrowsePastGamesByID(query string) ([]models.PastGame, error)
func (*GormPastGameRepository) GetAllPastGames ¶
func (repo *GormPastGameRepository) GetAllPastGames() ([]models.PastGame, error)
func (*GormPastGameRepository) GetPastGameByID ¶
func (repo *GormPastGameRepository) GetPastGameByID(id uint) (models.PastGame, error)
Click to show internal directories.
Click to hide internal directories.