Versions in this module Expand all Collapse all v1 v1.1.0 Jul 22, 2018 v1.0.1 Jul 20, 2018 v1.0.0 Jul 20, 2018 Changes in this version + const CompressionHeaderGzip + const DateToday + const DateTomorrow + const DateYesterday + const FormatCSV + const FormatJSON + const FormatXML + const MySportsFeedBaseURL + const SeasonCurrent + const SeasonLatest + const SeasonUpcoming + const SportMLB + const SportNBA + const SportNFL + const SportNHL + const StatusFinal + const StatusInProgress + const StatusPostgameReviewing + const StatusUnplayed + const VersionV1_1 + const VersionV1_2 + const VersionV2_0 + type Actual struct + LineupPositions *[]LineupPosition + type AtBat struct + AtBatPlay *[]AtBatPlay + BattingTeam *Team + Inning *int + InningHalf *string + type AtBatPlay struct + BatterUp *BatterUp + Description *string + type AwayTeam struct + Abbreviation string + ID int + type BatterUp struct + BattingPlayer *Player + Result *string + StandingLeftOrRight *string + type Batting struct + AtBats *int + Batter2SeamFastballs *int + Batter4SeamFastballs *int + BatterChangeups *int + BatterCurveballs *int + BatterCutters *int + BatterDoublePlays *int + BatterFlyBalls *int + BatterFlyOuts *int + BatterForceOuts *int + BatterGroundBalls *int + BatterGroundOutToFlyOutRatio *float64 + BatterGroundOuts *int + BatterIntentionalWalks *int + BatterLineDrives *int + BatterOnBasePct *float64 + BatterOnBasePlusSluggingPct *float64 + BatterPutOuts *int + BatterSacrificeBunts *int + BatterSacrificeFlies *int + BatterSinkers *int + BatterSliders *int + BatterSluggingPct *float64 + BatterSplitters *int + BatterStolenBasePct *float64 + BatterStrikeouts *int + BatterStrikes *int + BatterStrikesFoul *int + BatterStrikesLooking *int + BatterStrikesMiss *int + BatterSwings *int + BatterTagOuts *int + BatterTriplePlays *int + BatterWalks *int + BattingAvg *float64 + CaughtBaseSteals *int + EarnedRuns *int + ExtraBaseHits *int + HitByPitch *int + Hits *int + Homeruns *int + LeftOnBase *int + PitchesFaced *int + PlateAppearances *int + Runs *int + RunsBattedIn *int + SecondBaseHits *int + StolenBases *int + ThirdBaseHits *int + TotalBases *int + UnearnedRuns *int + type BoxscoreIO struct + Game *Schedule + LastUpdatedOn string + References *References + Scoring *Score + Stats *StatsHomeAway + type BoxscoreStats struct + Players *[]Players + TeamStats *[]Stats + type Config struct + Authorization string + BaseURL string + Format string + Season string + Sport string + Version string + func NewConfig(authorization string) *Config + type CurrentInjury struct + Description *string + PlayingProbability *string + type CurrentSeasonIO struct + LastUpdatedOn string + Seasons *[]Season + type CurrentSeasonOptions struct + Date string + Force string + Format string + Sport string + URL string + Version string + type DailyDfsOptions struct + Country string + Date string + DfsType string + Force string + Format string + Limit string + Offset string + Player string + Position string + Season string + Sort string + Sport string + Team string + URL string + Version string + type DailyGamesOptions struct + Date string + Force string + Format string + Limit string + Offset string + Season string + Sort string + Sport string + Status string + Team string + URL string + Version string + type DailyPlayerGamelogsOptions struct + Date string + Force string + Format string + Game string + Limit string + Offset string + Player string + Position string + Season string + Sort string + Sport string + Stats string + Team string + URL string + Version string + Week string + type DailyStandingsOptions struct + Date string + Force string + Format string + Season string + Sport string + Stats string + Team string + URL string + Version string + type DailyTeamGamelogsOptions struct + Date string + Force string + Format string + Game string + Limit string + Offset string + Season string + Sort string + Sport string + Stats string + Team string + URL string + Version string + type DfsIO struct + LastUpdatedOn string + References *References + type Drafted struct + OverallPick *int + PickTeam *Team + Round *int + RoundPick *int + Team *Team + Year *int + type Expected struct + LineupPositions *[]LineupPosition + type ExternalMapping struct + ID *int + Source *string + type Feed struct + Abbreviation *string + Description *string + Name *string + Version *string + type FeedUpdate struct + Feed *Feed + ForDate *[]ForDate + ForGames *[]ForGame + LastUpdatedOn *string + type FeedUpdatesIO struct + FeedUpdates *[]FeedUpdate + LastUpdatedOn string + type FeedUpdatesOptions struct + Force string + Format string + Season string + Sport string + URL string + Version string + type Fielding struct + Assists *int + DefenceEfficiencyRatio *float64 + Errors *int + FielderCaughtStealing *int + FielderDoublePlays *int + FielderForceOuts *int + FielderPutOuts *int + FielderStolenBasePct *float64 + FielderStolenBasesAllowed *int + FielderTagOuts *int + FielderTriplePlays *int + FielderWildPitches *int + FieldingPct *float64 + InningsPlayed *float64 + OutsFaced *int + PassedBalls *int + RangeFactor *float64 + TotalChances *int + type ForDate struct + ForDate *string + LastUpdatedOn *string + type ForGame struct + Game *Schedule + LastUpdatedOn *string + type Game struct + Schedule *Schedule + Score *Score + type GameBoxscoreOptions struct + Force string + Format string + Game string + Limit string + Offset string + PlayerStats string + Season string + Sort string + Sport string + TeamStats string + URL string + Version string + type GameLineupIO struct + Game *Schedule + LastUpdatedOn string + References *References + TeamLineups *[]TeamLineup + type GameLineupOptions struct + Force string + Format string + Game string + LineupType string + Position string + Season string + Sport string + URL string + Version string + type GameLog struct + Game *GameLogGame + Player *Player + Stats *Stats + Team *Team + type GameLogGame struct + AwayTeamAbbreviation string + HomeTeamAbbreviation string + ID int + StartTime string + type GameLogIO struct + GameLog *[]GameLog + LastUpdatedOn string + References *References + type GamePlayByPlayIO struct + AtBats *[]AtBat + Game *Schedule + LastUpdatedOn string + References *References + type GamePlayByPlayOptions struct + Force string + Format string + Game string + Limit string + Offset string + Playtype string + Season string + Sort string + Sport string + URL string + Version string + type GameReference struct + AwayTeam AwayTeam + DelayedOrPostponedReason *string + HomeTeam HomeTeam + ID int + OriginalStartTime *string + PlayedStatus *string + ScheduleStatus string + StartTime string + Venue Venue + VenueAllegiance string + type GamesIO struct + Games *[]Game + LastUpdatedOn string + References *References + type Handedness struct + Bats string + Throws string + type HomeTeam struct + Abbreviation string + ID int + type HomeVenue struct + ID int + Name string + type IService interface + CurrentSeason func(c context.Context, options *CurrentSeasonOptions) (CurrentSeasonIO, error) + DailyDfs func(c context.Context, options *DailyDfsOptions) (DfsIO, error) + DailyGames func(c context.Context, options *DailyGamesOptions) (GamesIO, error) + DailyPlayerGamelogs func(c context.Context, options *DailyPlayerGamelogsOptions) (GameLogIO, error) + DailyStandings func(c context.Context, options *DailyStandingsOptions) (StandingsIO, error) + DailyTeamGamelogs func(c context.Context, options *DailyTeamGamelogsOptions) (GameLogIO, error) + FeedUpdates func(c context.Context, options *FeedUpdatesOptions) (FeedUpdatesIO, error) + GameBoxscore func(c context.Context, options *GameBoxscoreOptions) (BoxscoreIO, error) + GameLineup func(c context.Context, options *GameLineupOptions) (BoxscoreIO, error) + GamePlayByPlay func(c context.Context, options *GamePlayByPlayOptions) (GamePlayByPlayIO, error) + NewCurrentSeasonOptions func() *CurrentSeasonOptions + NewDailyDfsOptions func() *DailyDfsOptions + NewDailyGamesOptions func() *DailyGamesOptions + NewDailyPlayerGamelogsOptions func() *DailyPlayerGamelogsOptions + NewDailyStandingsOptions func() *DailyStandingsOptions + NewDailyTeamGamelogsOptions func() *DailyTeamGamelogsOptions + NewFeedUpdatesOptions func() *FeedUpdatesOptions + NewGameBoxscoreOptions func() *GameBoxscoreOptions + NewGameLineupOptions func() *GameLineupOptions + NewGamePlayByPlayOptions func() *GamePlayByPlayOptions + NewPlayerInjuriesOptions func() *PlayerInjuriesOptions + NewPlayersOptions func() *PlayersOptions + NewSeasonalDfsOptions func() *SeasonalDfsOptions + NewSeasonalGamesOptions func() *SeasonalGamesOptions + NewSeasonalPlayerGamelogsOptions func() *SeasonalPlayerGamelogsOptions + NewSeasonalPlayerStatsOptions func() *SeasonalPlayerStatsOptions + NewSeasonalTeamGamelogsOptions func() *SeasonalTeamGamelogsOptions + NewSeasonalTeamStatsOptions func() *SeasonalTeamStatsOptions + NewSeasonalVenuesOptions func() *SeasonalVenuesOptions + PlayerInjuries func(c context.Context, options *PlayerInjuriesOptions) (PlayerInjuriesIO, error) + Players func(c context.Context, options *PlayersOptions) (PlayersIO, error) + SeasonalDfs func(c context.Context, options *SeasonalDfsOptions) (DfsIO, error) + SeasonalGames func(c context.Context, options *SeasonalGamesOptions) (GamesIO, error) + SeasonalPlayerGamelogs func(c context.Context, options *SeasonalPlayerGamelogsOptions) (GameLogIO, error) + SeasonalPlayerStats func(c context.Context, options *SeasonalPlayerStatsOptions) (PlayerStatsTotalsIO, error) + SeasonalTeamGamelogs func(c context.Context, options *SeasonalTeamGamelogsOptions) (GameLogIO, error) + SeasonalTeamStats func(c context.Context, options *SeasonalTeamStatsOptions) (TeamStatsTotalsIO, error) + SeasonalVenues func(c context.Context, options *SeasonalVenuesOptions) (VenuesIO, error) + type Inning struct + AwayScore *int + HomeScore *int + InningNumber *int + ScoringPlays *[]ScoringPlay + type LineupPosition struct + Player *Player + Position *string + type Miscellaneous struct + GamesStarted *int + type Pitching struct + Balks *int + BattersHit *int + EarnedRunAvg *float64 + EarnedRunsAllowed *int + HitsAllowed *int + HitsAllowedPer9Innings *float64 + HomerunsAllowed *int + InningsPitched *int + PickoffAttempts *int + Pickoffs *int + Pitcher2SeamFastballs *int + Pitcher4SeamFastballs *int + PitcherCaughtStealing *int + PitcherChangeups *int + PitcherCurveballs *int + PitcherCutters *int + PitcherFlyBalls *int + PitcherFlyOuts *int + PitcherGroundBalls *int + PitcherGroundOutToFlyOutRatio *float64 + PitcherGroundOuts *int + PitcherIntentionalWalks *int + PitcherLineDrives *int + PitcherOnBasePct *float64 + PitcherOnBasePlusSluggingPct *float64 + PitcherSacrificeBunts *int + PitcherSacrificeFlies *int + PitcherSinkers *int + PitcherSliders *int + PitcherSluggingPct *float64 + PitcherSplitters *int + PitcherStolenBasesAllowed *int + PitcherStrikeouts *int + PitcherStrikes *int + PitcherStrikesFoul *int + PitcherStrikesLooking *int + PitcherStrikesMiss *int + PitcherSwings *int + PitcherWalks *int + PitcherWildPitches *int + PitchesPerInning *float64 + PitchesThrown *int + PitchingAvg *float64 + RunsAllowed *int + SecondBaseHitsAllowed *int + Shutouts *int + StrikeoutsPer9Innings *float64 + StrikeoutsToWalksRatio *float64 + ThirdBaseHitsAllowed *int + TotalBattersFaced *int + WalksAllowedPer9Innings *float64 + WalksAndHitsPerInningPitched *float64 + type Player struct + CurrentContractYear *bool + CurrentInjury *CurrentInjury + CurrentRosterStatus *string + CurrentTeam *Team + FirstName string + ID int + JerseyNumber *int + LastName string + Position string + type PlayerInjuriesIO struct + LastUpdatedOn string + Players *[]PlayerReference + type PlayerInjuriesOptions struct + Force string + Format string + Limit string + Offset string + Player string + Position string + Sort string + Sport string + Team string + URL string + Version string + type PlayerReference struct + Age *int + BirthCity *string + BirthCountry *string + BirthDate *string + College *string + Drafted *Drafted + ExternalMapping *ExternalMapping + Handedness *Handedness + Height *string + OfficialImageSrc *string + Rookie *bool + Twitter *string + Weight *float64 + type PlayerStatsTotal struct + Player *PlayerReference + Stats *Stats + Team *Team + type PlayerStatsTotalsIO struct + LastUpdatedOn string + PlayerStatsTotals *[]PlayerStatsTotal + References *References + type Players struct + Player *PlayerReference + PlayerStats *[]Stats + TeamAsOfDate *Team + type PlayersIO struct + LastUpdatedOn string + Players *[]Players + References *[]References + type PlayersOptions struct + Country string + Date string + Force string + Format string + Limit string + Offset string + Player string + Position string + RosterStatus string + Sort string + Sport string + Team string + URL string + Version string + type Rank struct + AppliesTo *string + ConferenceName *string + DivisionName *string + GamesBack *float64 + Rank *int + type References struct + GameReferences *[]GameReference + PlayerReferences *[]PlayerReference + PlayerStatReferences *[]StatReference + TeamReferences *[]TeamReference + TeamStatReferences *[]StatReference + VenueReferences *[]VenueReference + type Schedule struct + AwayTeam AwayTeam + DelayedOrPostponedReason *string + HomeTeam HomeTeam + ID int + OriginalStartTime *string + PlayedStatus string + ScheduleStatus string + StartTime string + Venue Venue + VenueAllegiance string + type Score struct + AwayErrorsTotal *int + AwayHitsTotal *int + AwayScoreTotal *int + CurrentInning *string + CurrentInningHalf *string + CurrentIntermission *string + HomeErrorsTotal *int + HomeHitsTotal *int + HomeScoreTotal *int + Innings []*Inning + PlayStatus *string + type ScoringPlay struct + AwayScore *int + HomeScore *int + InningHalf *string + PlayDescription *string + ScoreChange *int + Team *Team + type Season struct + EndDate *string + Name *string + SeasonInterval *string + Slug *string + StartDate *string + SupportedPlayerStats *[]StatReference + SupportedTeamStats *[]StatReference + type SeasonalDfsOptions struct + Country string + DfsType string + Force string + Format string + Limit string + Offset string + Player string + Position string + Season string + Sort string + Sport string + Team string + URL string + Version string + type SeasonalGamesOptions struct + Date string + Force string + Format string + Limit string + Offset string + Season string + Sort string + Sport string + Status string + Team string + URL string + Version string + type SeasonalPlayerGamelogsOptions struct + Date string + Force string + Format string + Game string + Limit string + Offset string + Player string + Position string + Season string + Sort string + Sport string + Stats string + Team string + URL string + Version string + type SeasonalPlayerStatsOptions struct + Country string + Date string + Force string + Format string + Limit string + Offset string + Player string + Position string + Season string + Sort string + Sport string + Stats string + Team string + URL string + Version string + type SeasonalTeamGamelogsOptions struct + Date string + Force string + Format string + Game string + Limit string + Offset string + Season string + Sort string + Sport string + Stats string + Team string + URL string + Version string + type SeasonalTeamStatsOptions struct + Date string + Force string + Format string + Limit string + Offset string + Season string + Sort string + Sport string + Stats string + Team string + URL string + Version string + type SeasonalVenuesOptions struct + Force string + Format string + Season string + Sport string + Team string + URL string + Version string + type Service struct + Config *Config + Logger *logrus.Entry + func NewService(config *Config) *Service + func (s *Service) CurrentSeason(c context.Context, options *CurrentSeasonOptions) (CurrentSeasonIO, error) + func (s *Service) DailyDfs(c context.Context, options *DailyDfsOptions) (DfsIO, error) + func (s *Service) DailyGames(c context.Context, options *DailyGamesOptions) (GamesIO, error) + func (s *Service) DailyPlayerGamelogs(c context.Context, options *DailyPlayerGamelogsOptions) (GameLogIO, error) + func (s *Service) DailyStandings(c context.Context, options *DailyStandingsOptions) (StandingsIO, error) + func (s *Service) DailyTeamGamelogs(c context.Context, options *DailyTeamGamelogsOptions) (GameLogIO, error) + func (s *Service) FeedUpdates(c context.Context, options *FeedUpdatesOptions) (FeedUpdatesIO, error) + func (s *Service) GameBoxscore(c context.Context, options *GameBoxscoreOptions) (BoxscoreIO, error) + func (s *Service) GameLineup(c context.Context, options *GameLineupOptions) (GameLineupIO, error) + func (s *Service) GamePlayByPlay(c context.Context, options *GamePlayByPlayOptions) (GamePlayByPlayIO, error) + func (s *Service) NewCurrentSeasonOptions() *CurrentSeasonOptions + func (s *Service) NewDailyDfsOptions() *DailyDfsOptions + func (s *Service) NewDailyGamesOptions() *DailyGamesOptions + func (s *Service) NewDailyPlayerGamelogsOptions() *DailyPlayerGamelogsOptions + func (s *Service) NewDailyStandingsOptions() *DailyStandingsOptions + func (s *Service) NewDailyTeamGamelogsOptions() *DailyTeamGamelogsOptions + func (s *Service) NewFeedUpdatesOptions() *FeedUpdatesOptions + func (s *Service) NewGameBoxscoreOptions() *GameBoxscoreOptions + func (s *Service) NewGameLineupOptions() *GameLineupOptions + func (s *Service) NewGamePlayByPlayOptions() *GamePlayByPlayOptions + func (s *Service) NewPlayerInjuriesOptions() *PlayerInjuriesOptions + func (s *Service) NewPlayersOptions() *PlayersOptions + func (s *Service) NewSeasonalDfsOptions() *SeasonalDfsOptions + func (s *Service) NewSeasonalGamesOptions() *SeasonalGamesOptions + func (s *Service) NewSeasonalPlayerGamelogsOptions() *SeasonalPlayerGamelogsOptions + func (s *Service) NewSeasonalPlayerStatsOptions() *SeasonalPlayerStatsOptions + func (s *Service) NewSeasonalTeamGamelogsOptions() *SeasonalTeamGamelogsOptions + func (s *Service) NewSeasonalTeamStatsOptions() *SeasonalTeamStatsOptions + func (s *Service) NewSeasonalVenuesOptions() *SeasonalVenuesOptions + func (s *Service) PlayerInjuries(c context.Context, options *PlayerInjuriesOptions) (PlayerInjuriesIO, error) + func (s *Service) Players(c context.Context, options *PlayersOptions) (PlayersIO, error) + func (s *Service) SeasonalDfs(c context.Context, options *SeasonalDfsOptions) (DfsIO, error) + func (s *Service) SeasonalGames(c context.Context, options *SeasonalGamesOptions) (GamesIO, error) + func (s *Service) SeasonalPlayerGamelogs(c context.Context, options *SeasonalPlayerGamelogsOptions) (GameLogIO, error) + func (s *Service) SeasonalPlayerStats(c context.Context, options *SeasonalPlayerStatsOptions) (PlayerStatsTotalsIO, error) + func (s *Service) SeasonalTeamGamelogs(c context.Context, options *SeasonalTeamGamelogsOptions) (GameLogIO, error) + func (s *Service) SeasonalTeamStats(c context.Context, options *SeasonalTeamStatsOptions) (TeamStatsTotalsIO, error) + func (s *Service) SeasonalVenues(c context.Context, options *SeasonalVenuesOptions) (VenuesIO, error) + type Standings struct + GamesBack *float64 + Losses *int + RunDifferential *float64 + RunsAgainst *int + RunsFor *int + WinPct *float64 + Wins *int + type StandingsIO struct + LastUpdatedOn string + References *[]References + Teams *[]Teams + type StatReference struct + Abbreviation string + Category string + Description string + FullName string + Type string + type Stats struct + Batting *Batting + Fielding *Fielding + GamesPlayed *int + Miscellaneous *Miscellaneous + Pitching *Pitching + Standings *Standings + type StatsHomeAway struct + Away *BoxscoreStats + Home *BoxscoreStats + type Team struct + Abbreviation string + ID int + type TeamLineup struct + Actual *Actual + Expected *Expected + Team *Team + type TeamReference struct + Abbreviation string + City string + HomeVenue HomeVenue + ID int + Name string + type TeamStatsTotal struct + Stats *Stats + Team *TeamReference + type TeamStatsTotalsIO struct + LastUpdatedOn string + TeamStatsTotals *[]TeamStatsTotal + type Teams struct + ConferenceRank *Rank + DivisionRank *Rank + OverallRank *Rank + PlayoffRank *Rank + Stats *Stats + Team *TeamReference + type Venue struct + ID int + Name string + type VenueReference struct + City *string + Country *string + ID *int + Name *string + type Venues struct + HomeTeam *TeamReference + Venue *VenueReference + type VenuesIO struct + LastUpdatedOn string + Venues *[]Venues Incompatible versions in this module v2.3.0+incompatible Jul 28, 2018 v2.2.0+incompatible Jul 25, 2018 v2.1.0+incompatible Jul 25, 2018 v2.0.0+incompatible Jul 24, 2018