model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Competition

type Competition struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	Code string `json:"code"`
}

Competition model

type Match

type Match struct {
	ID       int       `json:"id"`
	Date     time.Time `json:"utcDate"`
	Status   string    `json:"status"`
	Matchday int       `json:"matchday"`
	Stage    string    `json:"stage"`
	Group    string    `json:"group"`
	Scores   Score     `json:"score"`
	HomeTeam Team      `json:"homeTeam"`
	AwayTeam Team      `json:"awayTeam"`
}

Match Model

type Score

type Score struct {
	Winner    string    `json:"winner"`
	Duration  string    `json:"duration"`
	FullTime  TeamScore `json:"fullTime"`
	HalfTime  TeamScore `json:"halfTime"`
	ExtraTime TeamScore `json:"extraTime"`
	Penalties TeamScore `json:"penalties"`
}

Score Model

type ScoreResponse

type ScoreResponse struct {
	Competition Competition `json:"competition"`
	Matches     []Match     `json:"matches"`
}

ScoreResponse Model

type Standing

type Standing struct {
	Stage  string  `json:"stage"`
	Type   string  `json:"type"`
	Tables []Table `json:"table"`
}

Standing model

type StandingResponse

type StandingResponse struct {
	Filter      string      `json:"filter"`
	Competition Competition `json:"competition"`
	Standing    []Standing  `json:"standings"`
}

StandingResponse Model

type Table

type Table struct {
	Position       int    `json:"position"`
	Team           Team   `json:"team"`
	PlayedGames    int    `json:"playedGames"`
	Form           string `json:"form"`
	Won            int    `json:"won"`
	Draw           int    `json:"draw"`
	Lost           int    `json:"lost"`
	Points         int    `json:"points"`
	GoalsFor       int    `json:"goalsFor"`
	GoalsAgainst   int    `json:"goalsAgainst"`
	GoalDifference int    `json:"goalDifference"`
}

Table model

type Team

type Team struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Team model

type TeamScore

type TeamScore struct {
	HomeTeam int `json:"homeTeam"`
	AwayTeam int `json:"awayTeam"`
}

TeamScore Model

Jump to

Keyboard shortcuts

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