repository

package
v0.0.0-...-4ac5823 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Zlib Imports: 9 Imported by: 0

Documentation

Index

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

func (r *Repository) GetGame(gameID int64, date string) (*models.Game, error)

func (*Repository) GetGames

func (r *Repository) GetGames() ([]*models.Game, 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

Jump to

Keyboard shortcuts

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