Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + type Client struct + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func (c *Client) Get(ctx context.Context, url string) ([]byte, error) + func (c *Client) GetGameByPk(ctx context.Context, gamePk string) (*Game, error) + func (c *Client) GetPlayerByID(ctx context.Context, id string) (*Player, error) + func (c *Client) GetPlayers(ctx context.Context, season string) ([]*Player, error) + func (c *Client) GetSchedule(ctx context.Context, date string) ([]*Game, error) + func (c *Client) GetStandings(ctx context.Context, season string) ([]*Standing, error) + func (c *Client) GetTeamByID(ctx context.Context, id string) (*Team, error) + func (c *Client) GetTeams(ctx context.Context) ([]*Team, error) + type Config struct + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type Game struct + AwayScore int + AwayTeam string + Date string + GamePK int + HomeScore int + HomeTeam string + Status string + Venue string + type Player struct + FullName string + ID int + Number string + Position string + TeamID int + type Standing struct + Division string + GamesBack string + Losses int + Pct string + Streak string + TeamName string + Wins int + type Team struct + Abbreviation string + FirstYear string + ID int + Location string + Name string + TeamName string