Versions in this module Expand all Collapse all v0 v0.3.0 Apr 18, 2024 v0.2.1 Feb 15, 2024 Changes in this version + type Service struct + ApiBaseURL string + ApiHost string + ApiKey string + Logger *slog.Logger + func NewService(logger *slog.Logger, apiKey string) *Service + func (afs *Service) ProxyHandler(w http.ResponseWriter, r *http.Request) v0.1.1 Oct 13, 2023 Changes in this version + var BugError = errors.New("API Football: report bug") + type Country struct + Code string + Flag string + Name string + type ErrorMessageResponse struct + Message string + type Fixture struct + Date string + ID int + Periods struct{ ... } + Referee string + Status MatchStatus + Timestamp int + Timezone string + Venue struct{ ... } + type FixturesResponse struct + Response []Match + type Handler struct + ApiKey string + ApiUrl string + Host string + func New(apikey string) *Handler + func (fa *Handler) GetFixtures(queryParams url.Values) (*FixturesResponse, error) + func (fa *Handler) GetH2H(queryParams url.Values) (*FixturesResponse, error) + func (fa *Handler) GetLeagues(queryParams url.Values) (*LeagueResponse, error) + type League struct + ID int + Logo string + Name string + Type string + type LeagueData struct + Country Country + League League + Seasons []Season + type LeagueResponse struct + Response []LeagueData + type Match struct + Events []MatchEvent + Fixture Fixture + Goals MatchGoals + League MatchLeague + Lineups []MatchLineup + Score MatchScore + Stats []MatchStat + Teams MatchTeams + type MatchEvent struct + Assist struct{ ... } + Comments string + Detail string + Player struct{ ... } + Team struct{ ... } + Time struct{ ... } + Type string + type MatchGoals struct + Away int + Home int + type MatchLeague struct + Country string + Flag string + ID int + Logo string + Name string + Round string + Season int + type MatchLineup struct + Coach struct{ ... } + Formation string + StartXI []struct{ ... } + Substitutes []struct{ ... } + Team struct{ ... } + type MatchScore struct + Extratime struct{ ... } + Fulltime struct{ ... } + Halftime struct{ ... } + Penalty struct{ ... } + type MatchStat struct + Stats []struct{ ... } + Team struct{ ... } + type MatchStatus struct + Elapsed int + Long string + Short string + type MatchTeams struct + Away struct{ ... } + Home struct{ ... } + type Season struct