Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlayByPlayUpdate ¶
type PlayByPlayWriter ¶
type PlayByPlayWriter interface {
UpdatePlayByPlays(ctx context.Context, playByPlayUpdates []PlayByPlayUpdate) ([]api.PlayByPlay, error)
}
type Service ¶
type Service interface { FetchPlayByPlayForGame(ctx context.Context, logger *slog.Logger, gameID string) (nba.PlayByPlay, error) UpdatePlayByPlayForGames(ctx context.Context, logger *slog.Logger, nbaGameIDs []string) ([]api.PlayByPlay, error) }
func NewService ¶
func NewService(nbaClient nba.Client, r2Client cloudflare.Client, playByPlayStore PlayByPlayWriter) Service
Click to show internal directories.
Click to hide internal directories.