Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() *Config
type GetTeamsResponse ¶
type MLBStatsAPI ¶
type MLBStatsAPI struct { Config *Config // contains filtered or unexported fields }
func New ¶
func New() *MLBStatsAPI
func (*MLBStatsAPI) GetTeams ¶
func (api *MLBStatsAPI) GetTeams() ([]*Team, error)
type Team ¶
type Team struct { ID int `json:"id"` AllStarStatus string `json:"allStarStatus"` Name string `json:"name"` Season int `json:"season"` Venue *Venue `json:"venue"` TeamCode string `json:"teamCode"` FileCode string `json:"fileCode"` Abbreviation string `json:"abbreviation"` TeamName string `json:"teamName"` LocationName string `json:"locationName"` FirstYearOfPlay string `json:"firstYearOfPlay"` League *League `json:"league"` Division *Division `json:"division"` Sport *Sport `json:"sport"` ShortName string `json:"shortName"` ParentOrgName string `json:"parentOrgName"` ParentOrgID int `json:"parentOrgId"` FranchiseName string `json:"franchiseName"` ClubName string `json:"clubName"` Active bool `json:"active"` }
Click to show internal directories.
Click to hide internal directories.