Documentation
¶
Index ¶
Constants ¶
View Source
const ( Forward Position = "F" Center = "C" Guard = "G" )
View Source
const NBA_DATA_ENDPOINT = "https://data.nba.net/data/10s/prod/v1"
Variables ¶
This section is empty.
Functions ¶
func GetBoxscoreData ¶
GetBoxscoreData returns the boxscore from a given date and game identifier
func GetMockServer ¶
GetMockServer initializes the mock responses when calling data api
func GetScoreboardData ¶
GetScoreboardData returns the scoreboard from a given date
Types ¶
type Boxscore ¶
Boxscore represents the boxscore of a game
func GetBoxscore ¶
GetBoxscore returns the boxscore of a game between two teams that was played from a given date
func GetBoxscores ¶
GetBoxscores returns the list of boxscores that was played from a given date
type Stats ¶
type Stats struct {
PlayerID string
FirstName string
LastName string
TeamID string
Points int
Rebounds int
Assists int
Blocks int
Steals int
Turnovers int
Fouls int
FGM int // Field goal made
FGA int // Field goal attempted
TPM int // Three points made
TPA int // Three points attempted
FTM int // Free throw made
FTA int // Free throw attempted
}
Stats represents the statistics of a player
Click to show internal directories.
Click to hide internal directories.