Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boxscore ¶
type Boxscore struct { GameID string `json:"game_id"` HomeTeam Team `json:"home_team"` AwayTeam Team `json:"away_team"` }
func NewBoxscore ¶
func NewBoxscore(bs nba.BoxscoreData) Boxscore
type Provider ¶
type Provider interface { GetScoreboard(context.Context, nba.GetScoreboardCommand) (Scoreboard, error) GetBoxscore(context.Context, nba.GetBoxscoreCommand) (Boxscore, error) }
type Scoreboard ¶
func NewScoreboard ¶
func NewScoreboard(sb nba.ScoreboardData) Scoreboard
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetBoxscore ¶
func (*Service) GetScoreboard ¶
func (s *Service) GetScoreboard(ctx context.Context, cmd nba.GetScoreboardCommand) (Scoreboard, error)
type Stats ¶
type Stats struct { Minutes string `json:"min"` FGM int64 `json:"fgm"` FGA int64 `json:"fga"` FGP float64 `json:"fgp"` ThreeFGM int64 `json:"3fgm"` ThreeFGA int64 `json:"3fga"` ThreeFGP float64 `json:"3fgp"` FTM int64 `json:"ftm"` FTA int64 `json:"fta"` FTP float64 `json:"ftp"` RO int64 `json:"oreb"` RD int64 `json:"dreb"` RT int64 `json:"reb"` RTeam int64 `json:"rebt"` AST int64 `json:"ast"` STL int64 `json:"stl"` BLK int64 `json:"blk"` TO int64 `json:"to"` TOT int64 `json:"tot"` FP int64 `json:"pf"` FD int64 `json:"fd"` PT int64 `json:"pts"` PlusMinus float64 `json:"plus_minus"` }
Click to show internal directories.
Click to hide internal directories.