Documentation ¶
Index ¶
- Variables
- func Bookmaker(ID int) ([]byte, error)
- func Bookmakers() ([]byte, error)
- func Coach(ID int) ([]byte, error)
- func CommentariesFixture(ID int) ([]byte, error)
- func Continent(ID int, include string) ([]byte, error)
- func Continents(include string) ([]byte, error)
- func Countries(include string, page int, allPages bool) ([]byte, error)
- func Country(ID int, include string) ([]byte, error)
- func Fixture(ID int, include string) ([]byte, error)
- func FixturesDate(date string, include string, page int, allPages bool) ([]byte, error)
- func FixturesFromToDate(fromDate, toDate string, include string, page int, allPages bool) ([]byte, error)
- func FixturesFromToDateTeam(fromDate, toDate string, teamID int, include string, page int, allPages bool) ([]byte, error)
- func FixturesMultipleIntList(IDs []int, include string) ([]byte, error)
- func FixturesMultipleList(IDs, include string) ([]byte, error)
- func Get(endpoint string, include string, page int, allPages bool) ([]byte, error)
- func Head2Head(team1ID, team2ID int, include string) ([]byte, error)
- func IntSliceToSepString(slice []int, sep string) string
- func League(ID int, include string) ([]byte, error)
- func Leagues(include string, page int, allPages bool) ([]byte, error)
- func LiveStandingsSeason(ID int, include string) ([]byte, error)
- func Livescores(include string, page int, allPages bool) ([]byte, error)
- func LivescoresNow(include string) ([]byte, error)
- func Market(ID int) ([]byte, error)
- func Markets() ([]byte, error)
- func OddsFixture(ID int) ([]byte, error)
- func OddsFixtureBookmaker(fixtureID, bookmakerID int) ([]byte, error)
- func OddsFixtureMarket(fixtureID, marketID int) ([]byte, error)
- func OddsInPlayFixture(ID int) ([]byte, error)
- func Player(ID int, include string) ([]byte, error)
- func Round(ID int, include string) ([]byte, error)
- func Season(ID int, include string) ([]byte, error)
- func SeasonRounds(ID int, include string) ([]byte, error)
- func SeasonTeamSquad(seasonID, teamID int, include string) ([]byte, error)
- func SeasonTeams(ID int, include string) ([]byte, error)
- func SeasonTopScorer(ID int, include string) ([]byte, error)
- func SeasonVenues(ID int) ([]byte, error)
- func Seasons(include string, page int, allPages bool) ([]byte, error)
- func SetAPIToken(s string)
- func Stage(ID int, include string) ([]byte, error)
- func StagesSeason(ID int, include string) ([]byte, error)
- func StandingsSeason(ID int, include string) ([]byte, error)
- func Team(ID int, include string) ([]byte, error)
- func TvStationsFixture(ID int) ([]byte, error)
- func Venue(ID int) ([]byte, error)
- func VideoHighlights(include string, page int, allPages bool) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
var AllPages = true
AllPages specifies to fetch all pages available for that request
var FirstOrAllPages = 0
FirstOrAllPages specifies the default when a specific page is not requested this default should be used when requesting the first page or all pages
var Logger = log.Logger{}
Logger is a dedicated sportmonks logger
var NoIncludes = ""
NoIncludes specifies the default of no includes
var SinglePage = false
SinglePage specifies to only fetch a single page for the request
Functions ¶
func CommentariesFixture ¶
CommentariesFixture fetches textual representations of events within a fixture
func Continents ¶
Continents request for all continents
func FixturesDate ¶
FixturesDate fetches fixtures played at a specific date
func FixturesFromToDate ¶
func FixturesFromToDate(fromDate, toDate string, include string, page int, allPages bool) ([]byte, error)
FixturesFromToDate fetches fixtures played between the specified dates
func FixturesFromToDateTeam ¶
func FixturesFromToDateTeam(fromDate, toDate string, teamID int, include string, page int, allPages bool) ([]byte, error)
FixturesFromToDateTeam fetches all fixtures between the specified dates for the team identified by teamID
func FixturesMultipleIntList ¶
FixturesMultipleIntList fetches all fixtures with IDs contained in the supplied int slice
func FixturesMultipleList ¶
FixturesMultipleList fetches all fixtures with IDs contained in the supplied comma-separated int string
func IntSliceToSepString ¶
IntSliceToSepString takes a int slice and generates a string of values separated by specified separator
func LiveStandingsSeason ¶
LiveStandingsSeason fetches live standings for the specified season
func Livescores ¶
Livescores fetches fixtures which are played today
func LivescoresNow ¶
LivescoresNow fetches live fixtures
func OddsFixture ¶
OddsFixture fetches betting odds for specified fixture
func OddsFixtureBookmaker ¶
OddsFixtureBookmaker fetches betting information for specified fixture for specified bookmaker
func OddsFixtureMarket ¶
OddsFixtureMarket fetches betting odds for specified fixture for specified market
func OddsInPlayFixture ¶
OddsInPlayFixture fetches in play odds for specified fixture
func SeasonRounds ¶
SeasonRounds fetches all rounds for specified season
func SeasonTeamSquad ¶
SeasonTeamSquad fetches a squad for a specified team for a specified season
func SeasonTeams ¶
SeasonTeams fetches all teams from a specified season
func SeasonTopScorer ¶
SeasonTopScorer fetches the top goal scorers for a specified season
func SeasonVenues ¶
SeasonVenues fetches venues for specified season
func StagesSeason ¶
StagesSeason fetches all stages for season specified by ID
func StandingsSeason ¶
StandingsSeason fetches standings for the specified season
func TvStationsFixture ¶
TvStationsFixture fetches all Tv stations which broadcast the specified fixture
Types ¶
This section is empty.