leagues

package
v0.0.0-...-702d5d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Country

type Country struct {
	Name string `mapstructure:"name"`
	Code string `mapstructure:"code"`
	Flag string `mapstructure:"flag"`
}

type Coverage

type Coverage struct {
	Fixtures struct {
		Events             bool `json:"events"`
		Lineups            bool `json:"lineups"`
		StatisticsFixtures bool `json:"statistics_fixtures"`
		StatisticsPlayers  bool `json:"statistics_players"`
	} `json:"fixtures"`
	Standings   bool `json:"standings"`
	Players     bool `json:"players"`
	TopScorers  bool `json:"top_scorers"`
	TopAssists  bool `json:"top_assists"`
	TopCards    bool `json:"top_cards"`
	Injuries    bool `json:"injuries"`
	Predictions bool `json:"predictions"`
	Odds        bool `json:"odds"`
}

type League

type League struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Country string `json:"country,omitempty"`
	Type    string `json:"type"`
	Flag    string `json:"flag,omitempty"`
	Season  int    `json:"season,omitempty"`
}

type LeagueData

type LeagueData struct {
	League  League   `json:"league"`
	Country Country  `json:"country"`
	Seasons []Season `json:"seasons"`
}

type Season

type Season struct {
	Year     int       `json:"year"`
	Start    time.Time `json:"start"`
	End      time.Time `json:"end"`
	Current  bool      `json:"current"`
	Coverage Coverage  `json:"coverage"`
}

type SeasonYear

type SeasonYear struct {
	Year int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL