Documentation ¶
Index ¶
- Constants
- type AllStandings
- type Biggest
- type BiggestGoals
- type Birth
- type Cards
- type CardsStats
- type CareerRow
- type Client
- func (c *Client) GetCoachs(ctx context.Context, options *CoachsOptions) (*Coachs, error)
- func (c *Client) GetFixtures(ctx context.Context, options *FixturesOptions) (*Fixtures, error)
- func (c *Client) GetFixturesEvents(ctx context.Context, options *FixturesEventsOptions) (*FixturesEvents, error)
- func (c *Client) GetFixturesLineups(ctx context.Context, options *FixturesLineupsOptions) (*FixturesLineups, error)
- func (c *Client) GetFixturesPlayers(ctx context.Context, options *FixturesPlayersOptions) (*FixturesPlayers, error)
- func (c *Client) GetFixturesStatistics(ctx context.Context, options *FixturesStatisticsOptions) (*FixturesStatistics, error)
- func (c *Client) GetHead2Head(ctx context.Context, options *Head2HeadOptions) (*Fixtures, error)
- func (c *Client) GetOddsLive(ctx context.Context, options *OddsLiveOptions) (*OddsLive, error)
- func (c *Client) GetPredictions(ctx context.Context, options *PredictionsOptions) (*Predictions, error)
- func (c *Client) GetSidelined(ctx context.Context, options *SidelinedOptions) (*Sidelined, error)
- func (c *Client) GetStandings(ctx context.Context, options *StandingsOptions) (*Standings, error)
- func (c *Client) GetStatus(ctx context.Context) (*StatusResponse, error)
- func (c *Client) GetTeamSeasons(ctx context.Context, options *TeamSeasonsOptions) (*[]int, error)
- func (c *Client) GetTeamStatistics(ctx context.Context, options *TeamStatisticsOption) (*TeamStatistics, error)
- func (c *Client) GetTeams(ctx context.Context, options *TeamsOptions) (*Teams, error)
- func (c *Client) GetTranfers(ctx context.Context, options *TransfersOptions) (*Transfers, error)
- func (c *Client) GetVenues(ctx context.Context, options *VenuesOptions) (*Venues, error)
- type Coachs
- type CoachsOptions
- type Colors
- type Comparison
- type DribblesStats
- type DuelsStats
- type Fixture
- type FixtureOddsLive
- type FixtureTime
- type Fixtures
- type FixturesEvents
- type FixturesEventsOptions
- type FixturesLineups
- type FixturesLineupsOptions
- type FixturesOptions
- type FixturesPlayers
- type FixturesPlayersOptions
- type FixturesStatistics
- type FixturesStatisticsOptions
- type FormationPlayed
- type FoulsStats
- type GameStatistic
- type Goals
- type GoalsForAgainst
- type GoalsForAgainstTotalAvg
- type GoalsTotalAvg
- type Head2Head
- type Head2HeadOptions
- type HomeAwayAvg
- type HomeAwayString
- type HomeAwayTotal
- type IntervalStats
- type League
- type LeagueFixtures
- type LeagueGoals
- type LeagueInfo
- type LeagueOddsLive
- type Lineups
- type Odd
- type OddValues
- type OddsLive
- type OddsLiveOptions
- type OddsStatus
- type PenaltyStats
- type Percent
- type Periods
- type PersonalFixtureStats
- type PersonalPassesStats
- type PersonalTacklesStats
- type Player
- type PlayerColors
- type PlayerFixtureInfo
- type PlayerInLineup
- type PlayerStatistics
- type PlayerWithPhoto
- type Prediction
- type Predictions
- type PredictionsLeague
- type PredictionsOptions
- type PredictionsTeam
- type PredictionsTeams
- type ScoreInFixture
- type Shots
- type Sidelined
- type SidelinedOptions
- type StandingTeamStats
- type Standings
- type StandingsLeague
- type StandingsOptions
- type StandingsPerTeam
- type StatisticsGoalsByTeam
- type Status
- type StatusResponse
- type TeamExtendedInfo
- type TeamFixtureFullInfo
- type TeamFixtureInfo
- type TeamGoalsOddsLive
- type TeamGoalsStatistics
- type TeamPredictionsPerTime
- type TeamSeasonsOptions
- type TeamShortInfo
- type TeamStatistics
- type TeamStatisticsOption
- type TeamStatisticsPenalty
- type Teams
- type TeamsFixture
- type TeamsH2H
- type TeamsOdds
- type TeamsOptions
- type TotalAverage
- type TotalPercentage
- type Transfer
- type TransferTeamsInOut
- type Transfers
- type TransfersOptions
- type TypeValueStatistic
- type VenueExtendedInfo
- type VenueShortInfo
- type Venues
- type VenuesOptions
- type WinnerTeam
- type WinsDrawsLoses
Constants ¶
View Source
const ( Protocol = "https" BaseDomainV3 = "v3.football.api-sports.io" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllStandings ¶
type AllStandings struct { Played int `json:"played"` Win int `json:"win"` Draw int `json:"draw"` Lose int `json:"lose"` Goals GoalsForAgainst `json:"goals"` }
type Biggest ¶
type Biggest struct { Streak WinsDrawsLoses `json:"streak"` Wins HomeAwayString `json:"wins"` Loses HomeAwayString `json:"loses"` Goals BiggestGoals `json:"goals"` }
type BiggestGoals ¶
type Cards ¶
type Cards struct { Yellow IntervalStats `json:"yellow"` Red IntervalStats `json:"red"` }
type CardsStats ¶
type CareerRow ¶
type CareerRow struct { Team TeamShortInfo `json:"team"` Start string `json:"start"` End string `json:"end"` }
type Client ¶
type Client struct { BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
func (*Client) GetFixtures ¶
func (*Client) GetFixturesEvents ¶
func (c *Client) GetFixturesEvents(ctx context.Context, options *FixturesEventsOptions) (*FixturesEvents, error)
func (*Client) GetFixturesLineups ¶
func (c *Client) GetFixturesLineups(ctx context.Context, options *FixturesLineupsOptions) (*FixturesLineups, error)
func (*Client) GetFixturesPlayers ¶
func (c *Client) GetFixturesPlayers(ctx context.Context, options *FixturesPlayersOptions) (*FixturesPlayers, error)
func (*Client) GetFixturesStatistics ¶
func (c *Client) GetFixturesStatistics(ctx context.Context, options *FixturesStatisticsOptions) (*FixturesStatistics, error)
func (*Client) GetHead2Head ¶
func (*Client) GetOddsLive ¶
func (*Client) GetPredictions ¶
func (c *Client) GetPredictions(ctx context.Context, options *PredictionsOptions) (*Predictions, error)
func (*Client) GetSidelined ¶
func (*Client) GetStandings ¶
func (*Client) GetTeamSeasons ¶
func (*Client) GetTeamStatistics ¶
func (c *Client) GetTeamStatistics(ctx context.Context, options *TeamStatisticsOption) (*TeamStatistics, error)
func (*Client) GetTranfers ¶
type Coachs ¶
type Coachs []struct { ID int `json:"id"` Name string `json:"name"` Firstname string `json:"firstname"` Lastname string `json:"lastname"` Age int `json:"age"` Birth Birth `json:"birth"` Nationality string `json:"nationality"` Height string `json:"height"` Weight string `json:"weight"` Photo string `json:"photo"` Team TeamShortInfo `json:"team"` Career []CareerRow `json:"career"` }
type CoachsOptions ¶
type Colors ¶
type Colors struct { Player PlayerColors `json:"player"` Goalkeeper PlayerColors `json:"goalkeeper"` }
type Comparison ¶
type Comparison struct { Form HomeAwayString `json:"form"` Att HomeAwayString `json:"att"` Def HomeAwayString `json:"def"` PoissonDistribution HomeAwayString `json:"poisson_distribution"` H2H HomeAwayString `json:"h2h"` Goals HomeAwayString `json:"goals"` Total HomeAwayString `json:"total"` }
type DribblesStats ¶
type DuelsStats ¶
type FixtureOddsLive ¶
type FixtureTime ¶
type Fixtures ¶
type Fixtures []struct { Fixture Fixture `json:"fixture"` League LeagueInfo `json:"league"` Teams TeamsFixture `json:"teams"` Goals Goals `json:"goals"` Score ScoreInFixture `json:"score"` }
type FixturesEvents ¶
type FixturesEvents []struct { Time FixtureTime `json:"time"` Team TeamShortInfo `json:"team"` Player Player `json:"player"` Assist Player `json:"assist"` Type string `json:"type"` Detail string `json:"detail"` Comments string `json:"comments"` }
type FixturesEventsOptions ¶
type FixturesLineups ¶
type FixturesLineups []struct { Team TeamFixtureFullInfo `json:"team"` Formation string `json:"formation"` StartXI []Lineups `json:"startXI"` Substitutes []Lineups `json:"substitutes"` Coach PlayerWithPhoto `json:"coach"` }
type FixturesLineupsOptions ¶
type FixturesOptions ¶
type FixturesOptions struct { Id int `json:"id" url:"id,omitempty"` Ids string `json:"ids" url:"ids,omitempty"` Live string `json:"live" url:"live,omitempty"` Date string `json:"date" url:"date,omitempty"` League int `json:"league" url:"league,omitempty"` Season int `json:"season" url:"season,omitempty"` Team int `json:"team" url:"team,omitempty"` Last int `json:"last" url:"last,omitempty"` Next int `json:"next" url:"next,omitempty"` From string `json:"from" url:"from,omitempty"` To string `json:"to" url:"to,omitempty"` Round string `json:"round" url:"round,omitempty"` Status string `json:"status" url:"status,omitempty"` Venue int `json:"venue" url:"venue,omitempty"` Timezone string `json:"timezone" url:"timezone,omitempty"` }
type FixturesPlayers ¶
type FixturesPlayers []struct { Team TeamShortInfo `json:"team"` Players []PlayerFixtureInfo `json:"players"` }
type FixturesPlayersOptions ¶
type FixturesStatistics ¶
type FixturesStatistics []struct { Team TeamShortInfo `json:"team"` Statistics []TypeValueStatistic `json:"statistics"` }
type FormationPlayed ¶
type FoulsStats ¶
type GameStatistic ¶
type GoalsForAgainst ¶
type GoalsForAgainstTotalAvg ¶
type GoalsForAgainstTotalAvg struct { For GoalsTotalAvg `json:"for"` Against GoalsTotalAvg `json:"against"` }
type GoalsTotalAvg ¶
type Head2Head ¶
type Head2Head struct { Fixture Fixture `json:"fixture"` League League `json:"league"` Teams TeamsH2H `json:"teams"` Goals Goals `json:"goals"` Score ScoreInFixture `json:"score"` }
type Head2HeadOptions ¶
type Head2HeadOptions struct { H2h string `json:"h2h" url:"h2h"` Date string `json:"date" url:"date,omitempty"` League int `json:"league" url:"league,omitempty"` Season int `json:"season" url:"season,omitempty"` Last int `json:"last" url:"last,omitempty"` Next int `json:"next" url:"next,omitempty"` From string `json:"from" url:"from,omitempty"` To string `json:"to" url:"to,omitempty"` Status string `json:"status" url:"status,omitempty"` Venue int `json:"venue" url:"venue,omitempty"` Timezone string `json:"timezone" url:"timezone,omitempty"` }
type HomeAwayAvg ¶
type HomeAwayString ¶
type HomeAwayTotal ¶
type IntervalStats ¶
type IntervalStats struct { Zero15 TotalPercentage `json:"0-15"` One630 TotalPercentage `json:"16-30"` Three145 TotalPercentage `json:"31-45"` Four660 TotalPercentage `json:"46-60"` Six175 TotalPercentage `json:"61-75"` Seven690 TotalPercentage `json:"76-90"` Nine1105 TotalPercentage `json:"91-105"` One06120 TotalPercentage `json:"106-120"` }
type LeagueFixtures ¶
type LeagueFixtures struct { Played HomeAwayTotal `json:"played"` Wins HomeAwayTotal `json:"wins"` Draws HomeAwayTotal `json:"draws"` Loses HomeAwayTotal `json:"loses"` }
type LeagueGoals ¶
type LeagueGoals struct { For TotalAverage `json:"for"` Against TotalAverage `json:"against"` }
type LeagueInfo ¶
type LeagueOddsLive ¶
type Lineups ¶
type Lineups struct {
Player PlayerInLineup `json:"player"`
}
type OddsLive ¶
type OddsLive []struct { Fixture FixtureOddsLive `json:"fixture"` League LeagueOddsLive `json:"league"` Teams TeamsOdds `json:"teams"` Status OddsStatus `json:"status"` Update time.Time `json:"update"` Odds []Odd `json:"odds"` }
type OddsLiveOptions ¶
type OddsStatus ¶
type PenaltyStats ¶
type PersonalFixtureStats ¶
type PersonalPassesStats ¶
type PersonalTacklesStats ¶
type PlayerColors ¶
type PlayerFixtureInfo ¶
type PlayerFixtureInfo struct { Player PlayerWithPhoto `json:"player"` Statistics []PlayerStatistics `json:"statistics"` }
type PlayerInLineup ¶
type PlayerStatistics ¶
type PlayerStatistics struct { Games GameStatistic `json:"games"` Offsides int `json:"offsides"` Shots Shots `json:"shots"` Goals PersonalFixtureStats `json:"goals"` Passes PersonalPassesStats `json:"passes"` Tackles PersonalTacklesStats `json:"tackles"` Duels DuelsStats `json:"duels"` Dribbles DribblesStats `json:"dribbles"` Fouls FoulsStats `json:"fouls"` Cards CardsStats `json:"cards"` Penalty PenaltyStats `json:"penalty"` }
type PlayerWithPhoto ¶
type Prediction ¶
type Predictions ¶
type Predictions []struct { Predictions Prediction `json:"predictions"` League League `json:"league"` Teams PredictionsTeams `json:"teams"` Comparison Comparison `json:"comparison"` H2H []Head2Head `json:"h2h"` }
type PredictionsLeague ¶
type PredictionsLeague struct { Form string `json:"form"` Fixtures LeagueFixtures `json:"fixtures"` Goals LeagueGoals `json:"goals"` Biggest Biggest `json:"biggest"` CleanSheet HomeAwayTotal `json:"clean_sheet"` FailedToScore HomeAwayTotal `json:"failed_to_score"` }
type PredictionsOptions ¶
type PredictionsOptions struct {
Fixture int `json:"fixture" url:"fixture"`
}
type PredictionsTeam ¶
type PredictionsTeam struct { ID int `json:"id"` Name string `json:"name"` Logo string `json:"logo"` Last5 TeamPredictionsPerTime `json:"last_5"` League PredictionsLeague `json:"league"` }
type PredictionsTeams ¶
type PredictionsTeams struct { Home PredictionsTeam `json:"home"` Away PredictionsTeam `json:"away"` }
type ScoreInFixture ¶
type SidelinedOptions ¶
type StandingTeamStats ¶
type StandingTeamStats struct { Played int `json:"played"` Win int `json:"win"` Draw int `json:"draw"` Lose int `json:"lose"` Goals GoalsForAgainst `json:"goals"` }
type Standings ¶
type Standings []struct { League StandingsLeague `json:"league"` }
type StandingsLeague ¶
type StandingsOptions ¶
type StandingsPerTeam ¶
type StandingsPerTeam struct { Rank int `json:"rank"` Team TeamShortInfo `json:"team"` Points int `json:"points"` GoalsDiff int `json:"goalsDiff"` Group string `json:"group"` Form string `json:"form"` Status string `json:"status"` Description string `json:"description"` All AllStandings `json:"all"` Home StandingTeamStats `json:"home"` Away StandingTeamStats `json:"away"` Update time.Time `json:"update"` }
type StatisticsGoalsByTeam ¶
type StatisticsGoalsByTeam struct { Total HomeAwayTotal `json:"total"` Average HomeAwayAvg `json:"average"` Minute IntervalStats `json:"minute"` }
type StatusResponse ¶
type StatusResponse struct { Get string `json:"get"` Parameters []interface{} `json:"parameters"` Errors []interface{} `json:"errors"` Results int `json:"results"` Paging struct { Current int `json:"current"` Total int `json:"total"` } `json:"paging"` Response struct { Account struct { Firstname string `json:"firstname"` Lastname string `json:"lastname"` Email string `json:"email"` } `json:"account"` Subscription struct { Plan string `json:"plan"` End time.Time `json:"end"` Active bool `json:"active"` } `json:"subscription"` Requests struct { Current int `json:"current"` LimitDay int `json:"limit_day"` } `json:"requests"` } `json:"response"` }
type TeamExtendedInfo ¶
type TeamFixtureFullInfo ¶
type TeamFixtureInfo ¶
type TeamGoalsOddsLive ¶
type TeamGoalsStatistics ¶
type TeamGoalsStatistics struct { For StatisticsGoalsByTeam `json:"for"` Against StatisticsGoalsByTeam `json:"against"` }
type TeamPredictionsPerTime ¶
type TeamPredictionsPerTime struct { Form string `json:"form"` Att string `json:"att"` Def string `json:"def"` Goals GoalsForAgainstTotalAvg `json:"goals"` }
type TeamSeasonsOptions ¶
type TeamSeasonsOptions struct {
Team int `json:"team" url:"team,omitempty"`
}
type TeamShortInfo ¶
type TeamStatistics ¶
type TeamStatistics struct { League League `json:"league"` Team TeamShortInfo `json:"team"` Form string `json:"form"` Fixtures LeagueFixtures `json:"fixtures"` Goals TeamGoalsStatistics `json:"goals"` Biggest Biggest `json:"biggest"` CleanSheet HomeAwayTotal `json:"clean_sheet"` FailedToScore HomeAwayTotal `json:"failed_to_score"` Penalty TeamStatisticsPenalty `json:"penalty"` Lineups []FormationPlayed `json:"lineups"` Cards Cards `json:"cards"` }
type TeamStatisticsOption ¶
type TeamStatisticsPenalty ¶
type TeamStatisticsPenalty struct { Scored TotalPercentage `json:"scored"` Missed TotalPercentage `json:"missed"` Total int `json:"total"` }
type Teams ¶
type Teams []struct { Team TeamExtendedInfo `json:"team"` Venue VenueExtendedInfo `json:"venue"` }
type TeamsFixture ¶
type TeamsFixture struct { Home TeamFixtureInfo `json:"home"` Away TeamFixtureInfo `json:"away"` }
type TeamsH2H ¶
type TeamsH2H struct { Home TeamShortInfo `json:"home"` Away TeamShortInfo `json:"away"` }
type TeamsOdds ¶
type TeamsOdds struct { Home TeamGoalsOddsLive `json:"home"` Away TeamGoalsOddsLive `json:"away"` }
type TeamsOptions ¶
type TeamsOptions struct { Id int `json:"id" url:"id,omitempty"` Name string `json:"name" url:"name,omitempty"` League int `json:"league" url:"league,omitempty"` Season int `json:"season" url:"season,omitempty"` Country string `json:"country" url:"country,omitempty"` Code string `json:"code" url:"code,omitempty"` Venue int `json:"venue" url:"venue,omitempty"` Search string `json:"search" url:"search,omitempty"` }
type TotalAverage ¶
type TotalAverage struct { Total HomeAwayTotal `json:"total"` Average HomeAwayAvg `json:"average"` }
type TotalPercentage ¶
type Transfer ¶
type Transfer struct { Date string `json:"date"` Type string `json:"type"` Teams TransferTeamsInOut `json:"teams"` }
type TransferTeamsInOut ¶
type TransferTeamsInOut struct { In TeamShortInfo `json:"in"` Out TeamShortInfo `json:"out"` }
type TransfersOptions ¶
type TypeValueStatistic ¶
type VenueExtendedInfo ¶
type VenueShortInfo ¶
type VenuesOptions ¶
type WinnerTeam ¶
type WinsDrawsLoses ¶
Click to show internal directories.
Click to hide internal directories.