Documentation
¶
Index ¶
- type AverageCount
- type AverageDetails
- type AverageGoals
- type Biggest
- type BiggestScore
- type CardsStats
- type Coach
- type Comparison
- type Details
- type DribblesStats
- type DuelsStats
- type Event
- type Fixture
- type FixtureDetails
- type FixturePrediction
- type FormData
- type Formation
- type FoulsStats
- type GeneralStats
- type GoalAmount
- type GoalAmountData
- type GoalStats
- type Goals
- type GoalsForAgainst
- type GridCell
- type HeadToHead
- type KitColor
- type Last5
- type League
- type LeaguePerformance
- type Lineup
- type LineupPosition
- type LineupUsage
- type PassesStats
- type PenaltyStats
- type Percent
- type Periods
- type Player
- type PlayerGameStatistics
- type PlayerLineup
- type PlayerStatistics
- type Predictions
- type Round
- type Score
- type ShotsStats
- type Status
- type Streak
- type TacklesStats
- type Team
- type TeamBasic
- type TeamDetails
- type TeamLineup
- type TeamPenaltyStats
- type TeamPlayerStats
- type TeamStatistic
- type TeamStatistics
- type TeamStats
- type Teams
- type Time
- type Venue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AverageCount ¶
type AverageDetails ¶
type AverageGoals ¶
type Biggest ¶
type Biggest struct { Streak Streak `mapstructure:"streak"` Wins BiggestScore `mapstructure:"wins"` Loses BiggestScore `mapstructure:"loses"` Goals GoalsForAgainst `mapstructure:"goals"` }
type BiggestScore ¶
type CardsStats ¶
type Comparison ¶
type Comparison struct { Form Percent `mapstructure:"form"` Att Percent `mapstructure:"att"` Def Percent `mapstructure:"def"` PoissonDistribution Percent `mapstructure:"poisson_distribution"` H2H Percent `mapstructure:"h2h"` Goals Percent `mapstructure:"goals"` Total Percent `mapstructure:"total"` }
type DribblesStats ¶
type DuelsStats ¶
type Event ¶
type Event struct { Time Time `json:"time"` Team Team `json:"team"` Player Player `json:"player"` Assist Player `json:"assist"` Type common.EventType `json:"type"` Detail common.EventTypeDetails `json:"detail"` Comments string `json:"comments"` }
func (Event) IsPenaltyShootout ¶
type FixtureDetails ¶
type FixturePrediction ¶
type Formation ¶
type Formation struct { Defenders int `mapstructure:"D" json:"D"` DefenciveMidfielders int `mapstructure:"DM" json:"DM"` Midfielders int `mapstructure:"M" json:"M"` AttackingMidfielders int `mapstructure:"AM" json:"AM"` Forwards int `mapstructure:"F" json:"F"` Original string `mapstructre:"original" json:"original"` }
type FoulsStats ¶
type GeneralStats ¶
type GoalAmount ¶
type GoalAmountData ¶
type GoalAmountData struct { For GoalAmount `mapstructure:"for"` Against GoalAmount `mapstructure:"against"` }
type GoalsForAgainst ¶
type HeadToHead ¶
type HeadToHead struct { Fixture FixtureDetails `json:"fixture"` League League `json:"league"` Teams Teams `json:"teams"` Goals Goals `json:"goals"` Score Score `json:"score"` }
type Last5 ¶
type Last5 struct { FormPercentage int `mapstructure:"form"` AttPercentage int `mapstructure:"att"` DefPercentage int `mapstructure:"def"` Goals GoalAmountData `mapstructure:"goals"` }
type LeaguePerformance ¶
type LeaguePerformance struct { Form string `mapstructure:"form"` FormData FormData `mapstructure:"fixtures"` Goals team.Goals `mapstructure:"goals"` Biggest Biggest `mapstructure:"biggest"` CleanSheet Details `mapstructure:"clean_sheet"` FailedToScore Details `mapstructure:"failed_to_score"` PenaltyStats TeamPenaltyStats `mapstructure:"penalty"` LineupUsage []LineupUsage `mapstructure:"lineups"` Cards team.Cards `mapstructure:"cards"` }
type Lineup ¶
type Lineup struct { Team TeamLineup `json:"team"` Formation Formation `json:"formation"` StartXI []PlayerLineup `mapstructure:"startXI" json:"startXI"` Substitutes []PlayerLineup `json:"substitutes"` Coach Coach `json:"coach"` }
type LineupPosition ¶
type LineupPosition string
const ( LineupPositionGoalkeeper LineupPosition = "G" LineupPositionDefender LineupPosition = "D" LineupPositionDefensiveMidfielder LineupPosition = "DM" LineupPositionMidfielder LineupPosition = "M" LineupPositionAttackingMidfielder LineupPosition = "AM" LineupPositionForward LineupPosition = "F" )
type LineupUsage ¶
type PassesStats ¶
type PenaltyStats ¶
type PlayerGameStatistics ¶
type PlayerGameStatistics struct { General GeneralStats `mapstructure:"games" json:"genaral"` Offsides int `json:"offsides"` Shots ShotsStats `json:"shots"` Goals GoalStats `json:"goals"` Passes PassesStats `json:"passes"` Tackles TacklesStats `json:"tackles"` Duels DuelsStats `json:"duels"` Dribbles DribblesStats `json:"dribbles"` Fouls FoulsStats `json:"fouls"` Cards CardsStats `json:"cards"` Penalty PenaltyStats `json:"penalty"` }
type PlayerLineup ¶
type PlayerLineup struct { ID int `json:"id"` Name string `json:"name"` Number int `json:"number"` Position LineupPosition `mapstructure:"pos" json:"pos"` // For some reason this is always null Grid GridCell `json:"grid"` }
type PlayerStatistics ¶
type PlayerStatistics struct { Team TeamBasic `json:"team"` Players []TeamPlayerStats `mapstructure:"players" json:"players"` }
type Predictions ¶
type Predictions struct { Prediction FixturePrediction `mapstructure:"predictions"` League League `mapstructure:"league"` Teams TeamStats `mapstructure:"teams"` Comparison Comparison `mapstructure:"comparison"` HeadToHead []HeadToHead `mapstructure:"h2h"` }
type ShotsStats ¶
type Status ¶
type Status struct { Long string `json:"long"` Value common.FixtureStatus `json:"short"` Elapsed int `json:"elapsed"` }
type TacklesStats ¶
type TeamDetails ¶
type TeamDetails struct { ID int `mapstructure:"id"` Name string `mapstructure:"name"` Logo string `mapstructure:"logo"` Last5 Last5 `mapstructure:"last_5"` League LeaguePerformance `mapstructure:"league"` }
type TeamLineup ¶
type TeamPenaltyStats ¶
type TeamPenaltyStats struct { Scored AverageCount `mapstructure:"scored"` Missed AverageCount `mapstructure:"missed"` Total int `mapstructure:"total"` }
type TeamPlayerStats ¶
type TeamPlayerStats struct { Player Player `json:"player"` Statistics PlayerGameStatistics `json:"statistics"` }
type TeamStatistic ¶
type TeamStatistics ¶
type TeamStatistics struct { Team TeamBasic `json:"team"` Statistics []TeamStatistic `json:"statistics"` }
type TeamStats ¶
type TeamStats struct { Home TeamDetails `mapstructure:"home"` Away TeamDetails `mapstructure:"away"` }
Click to show internal directories.
Click to hide internal directories.