Versions in this module Expand all Collapse all v2 v2.1.1 Jan 16, 2023 v2.1.0 Jan 15, 2023 Changes in this version + const NBA_DATA_ENDPOINT_V2 type ApiClient + func (c ApiClient) GetCurrentPlayersData() (map[string]interface{}, error) + type ApiV2Client struct + ApiHost string + ApiKey string + Url string + func NewApiV2Client(url string, apiKey string, apiHost string) ApiV2Client + func NewDefaultApiV2Client(apiKey string, apiHost string) ApiV2Client + func (c ApiV2Client) GetBoxscoreData(date string, gameId string) (map[string]interface{}, error) + func (c ApiV2Client) GetCurrentPlayersData() (map[string]interface{}, error) + func (c ApiV2Client) GetPlayerData(firstName string, lastName string) (map[string]interface{}, error) + func (c ApiV2Client) GetPlayerDataByID(ID string) (map[string]interface{}, error) + func (c ApiV2Client) GetPlayersData(year string) (map[string]interface{}, error) + func (c ApiV2Client) GetScoreboardData(date string) (map[string]interface{}, error) + func (c ApiV2Client) GetTeamsData() (map[string]interface{}, error) + type ClientV2 struct + ApiV2Client ApiV2Client + func NewClientV2(url string, apiKey string, apiHost string) ClientV2 + func NewDefaultClientV2(apiKey string, apiHost string) ClientV2 + func (c ClientV2) GetBoxscore(date string, homeTeam string, visitorTeam string) (Boxscore, error) + func (c ClientV2) GetBoxscores(date string) ([]Boxscore, error) + func (c ClientV2) GetGames(date string) ([]Game, error) + func (c ClientV2) GetPlayers() ([]Player, error) + func (c ClientV2) GetTeams() ([]Team, error) type Position + const PointGuard + const PowerForward + const SmallForward + const SmallGuard v2.0.0 Jan 14, 2023 Changes in this version + const NBA_DATA_ENDPOINT + const NBA_PLAYERS_DATA_ENDPOINT + func GetMockServer(t *testing.T) *httptest.Server + type ApiClient struct + PlayersUrl string + Url string + func NewApiClient(url ...string) ApiClient + func (c ApiClient) GetBoxscoreData(date string, gameId string) (map[string]interface{}, error) + func (c ApiClient) GetPlayerData(firstName string, lastName string) (map[string]interface{}, error) + func (c ApiClient) GetPlayersData(year string) (map[string]interface{}, error) + func (c ApiClient) GetScoreboardData(date string) (map[string]interface{}, error) + func (c ApiClient) GetTeamsData() (map[string]interface{}, error) + type AverageStats struct + AssistsPerGame float64 + BlocksPerGame float64 + FGP float64 + FTP float64 + PlayerID string + PointsPerGame float64 + ReboundsPerGame float64 + StealsPerGame float64 + TPP float64 + TurnoversPerGame float64 + type Boxscore struct + HomeTeam string + StatsList []Stats + VistorTeam string + type Client struct + ApiClient ApiClient + func NewClient(url ...string) Client + func (c Client) GetBoxscore(date string, homeTeam string, visitorTeam string) (Boxscore, error) + func (c Client) GetBoxscores(date string) ([]Boxscore, error) + func (c Client) GetGames(date string) ([]Game, error) + func (c Client) GetPlayers(year string) ([]Player, error) + func (c Client) GetTeams() ([]Team, error) + type Game struct + HomeTeam string + ID string + VistorTeam string + type Player struct + FirstName string + ID string + LastName string + Position Position + TeamID string + type Position string + const Center + const Forward + const Guard + type Stats struct + Assists int + Blocks int + FGA int + FGM int + FTA int + FTM int + FirstName string + Fouls int + LastName string + PlayerID string + Points int + Rebounds int + Steals int + TPA int + TPM int + TeamID string + Turnovers int + type Team struct + ID string + Name string + Tricode string Other modules containing this package github.com/Funshinho/boxscore