store

package
v0.0.0-...-5888283 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game interface {
	GetByIDs(ctx context.Context, ids []string) ([]api.Game, error)
	UpdateGamesOld(ctx context.Context, gameUpdates []GameUpdateOld) ([]api.Game, error)
	UpdateGames(ctx context.Context, gameUpdates []GameUpdate) ([]api.Game, error)
}

type GameUpdate

type GameUpdate struct {
	NBAGameID                       string
	NBAHomeTeamID                   int
	NBAAwayTeamID                   int
	HomeTeamPoints                  sql.NullInt64
	AwayTeamPoints                  sql.NullInt64
	GameStatusName                  string
	NBAArenaID                      int
	Attendance                      int
	Sellout                         bool
	Period                          int
	PeriodTimeRemainingTenthSeconds int
	DurationSeconds                 int
	RegulationPeriods               int
	StartTime                       time.Time
}

type GameUpdateOld

type GameUpdateOld struct {
	NBAGameID                       string
	NBAHomeTeamID                   int
	NBAAwayTeamID                   int
	HomeTeamPoints                  sql.NullInt64
	AwayTeamPoints                  sql.NullInt64
	GameStatusName                  string
	Attendance                      int
	SeasonStartYear                 string
	SeasonStageName                 string
	Period                          int
	PeriodTimeRemainingTenthSeconds int
	DurationSeconds                 sql.NullInt64
	StartTime                       time.Time
	EndTime                         sql.NullTime
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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