players

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Birth

type Birth struct {
	Date    time.Time `json:"date"`
	Place   string    `json:"place"`
	Country string    `json:"country"`
}

type Cards

type Cards struct {
	Yellow    int `json:"yellow"`
	YellowRed int `json:"yellowred"`
	Red       int `json:"red"`
}

type Games

type Games struct {
	Appearances int     `mapstructure:"appearences"`
	Lineups     int     `json:"lineups"`
	Minutes     int     `json:"minutes"`
	Number      int     `json:"number"`
	Position    string  `json:"position"`
	Rating      float32 `json:"rating"`
	Captain     bool    `json:"captain"`
}

type Player

type Player 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      unit.Length `json:"height"`
	Weight      unit.Mass   `json:"weight"`
	Injured     bool        `json:"injured"`
	Photo       string      `json:"photo"`
}

type PlayerBasic

type PlayerBasic struct {
	ID       int    `json:"id"`
	Name     string `json:"name"`
	Age      int    `json:"age"`
	Number   int    `json:"number"`
	Position string `json:"position"`
	Photo    string `json:"photo"`
}

type PlayerInfo

type PlayerInfo struct {
	Player     Player       `json:"player"`
	Statistics []Statistics `json:"statistics"`
}

type Squad

type Squad struct {
	Team    fixtures.TeamBasic `json:"team"`
	Players []PlayerBasic      `json:"players"`
}

type Statistics

type Statistics struct {
	Team        fixtures.TeamBasic     `json:"team"`
	League      leagues.League         `json:"league"`
	Games       Games                  `json:"games"`
	Substitutes Substitutes            `json:"substitutes"`
	Shots       fixtures.ShotsStats    `json:"shots"`
	Goals       fixtures.GoalStats     `json:"goals"`
	Passes      fixtures.PassesStats   `json:"passes"`
	Tackles     fixtures.TacklesStats  `json:"tackles"`
	Duels       fixtures.DuelsStats    `json:"duels"`
	Dribbles    fixtures.DribblesStats `json:"dribbles"`
	Fouls       fixtures.FoulsStats    `json:"fouls"`
	Cards       Cards                  `json:"cards"`
	Penalty     fixtures.PenaltyStats  `json:"penalty"`
}

type Substitutes

type Substitutes struct {
	In    int `json:"in"`
	Out   int `json:"out"`
	Bench int `json:"bench"`
}

Jump to

Keyboard shortcuts

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