Documentation ¶
Index ¶
- type Repository
- func (r *Repository) Close() error
- func (r *Repository) GetCachedPage(season string, team *string) (*models.CachedPage, error)
- func (r *Repository) GetCurrentSeason() (string, error)
- func (r *Repository) GetGame(gameID int64, date string) (*models.Game, error)
- func (r *Repository) GetGames() ([]*models.Game, error)
- func (r *Repository) GetGamesMissingContent(incremental bool) ([]*models.Game, error)
- func (r *Repository) UpdateCachedPagesIteratively(ctx context.Context, stream chan *models.CachedPage) error
- func (r *Repository) UpdateCachedPagges(cachedPages []*models.CachedPage) error
- func (r *Repository) UpsertGame(game *models.Game) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
func New(path string) (*Repository, error)
func (*Repository) Close ¶
func (r *Repository) Close() error
func (*Repository) GetCachedPage ¶
func (r *Repository) GetCachedPage(season string, team *string) (*models.CachedPage, error)
func (*Repository) GetCurrentSeason ¶
func (r *Repository) GetCurrentSeason() (string, error)
func (*Repository) GetGamesMissingContent ¶
func (r *Repository) GetGamesMissingContent(incremental bool) ([]*models.Game, error)
func (*Repository) UpdateCachedPagesIteratively ¶
func (r *Repository) UpdateCachedPagesIteratively(ctx context.Context, stream chan *models.CachedPage) error
func (*Repository) UpdateCachedPagges ¶
func (r *Repository) UpdateCachedPagges(cachedPages []*models.CachedPage) error
func (*Repository) UpsertGame ¶
func (r *Repository) UpsertGame(game *models.Game) error
Click to show internal directories.
Click to hide internal directories.