models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 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 Player

type Player struct {
	Id   int    `json:"id"`
	Ign  string `json:"ign"`
	Name string `json:"name"`
	Age  *int   `json:"age"`
}

type PlayerInfo

type PlayerInfo struct {
	Player
	Image       *string          `json:"image"`
	CurrentTeam *Team            `json:"team"`
	Top20       *string          `json:"presence_in_top20"` // Usando um ponteiro para permitir valor nulo
	MajorWins   *int16           `json:"major_wins"`
	Stats       *PlayerInfoStats `json:"stats"`
}

type PlayerInfoStats

type PlayerInfoStats struct {
	Rating         float32 `json:"rating"`
	KillsPerRound  float32 `json:"kills_per_round"`
	Headshots      float32 `json:"headshots"`
	MapsPlayed     int     `json:"maps_played"`
	DeathsPerRound float32 `json:"deaths_per_round"`
	RoundsContrib  float32 `json:"rounds_contributed"`
}

type PlayerMetrics

type PlayerMetrics struct {
	TotalKills      int     `json:"total_kills"`
	HeadshotPercent float32 `json:"headshot_percent"`
	TotalDeaths     int     `json:"total_deaths"`
	KDRatio         float32 `json:"kd_ratio"`
	DamagePerRound  float32 `json:"damage_per_round"`
	GrenadeDmgRound float32 `json:"grenade_dmg_round"`
	MapsPlayed      int     `json:"maps_played"`
	RoundsPlayed    int     `json:"rounds_played"`
	KillsPerRound   float32 `json:"kills_per_round"`
	AssistsPerRound float32 `json:"assists_per_round"`
	DeathsPerRound  float32 `json:"deaths_per_round"`
	SavedByTeammate float32 `json:"saved_by_team_mate"`
	SavedTeammates  float32 `json:"saved_team_mates"`
	Rating1_0       float32 `json:"ratio1.0"`
}

type PlayerSummary

type PlayerSummary struct {
	Player
	Image   *string        `json:"image"`
	Team    *Team          `json:"team"`
	Stats   StatEntry      `json:"stats"`
	Metrics *PlayerMetrics `json:"metrics"`
}

type StatEntry

type StatEntry struct {
	Rating1_0         float32 `json:"ratio1.0"`
	DeathsPerRound    float32 `json:"deaths_per_round"`
	Kast              float32 `json:"kast"`
	Impact            float32 `json:"impact"`
	AvgDamagePerRound float32 `json:"avg_damage_per_round"`
	KillsPerRound     float32 `json:"kills_per_round"`
}

type Team

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

type TeamInfo

type TeamInfo struct {
	Team
	LogoURL          string         `json:"logo"`
	Country          string         `json:"country"`
	WorldRanking     uint8          `json:"world_ranking"`
	WeeksInTop30     int            `json:"weeks_in_top30"`
	AveragePlayerAge float32        `json:"average_player_age"`
	CoachName        string         `json:"coach_name"`
	Lineup           *[]TeamPlayers `json:"lineup"`
}

type TeamPlayers

type TeamPlayers struct {
	Id         int     `json:"id"`
	Name       string  `json:"name"`
	Status     string  `json:"status"`
	TimeOnTeam float32 `json:"time_on_team"`
	MapsPlayed int     `json:"maps_Played"`
	Rating     float32 `json:"rating"`
}

type UpcomingMatche

type UpcomingMatche struct {
	Id     int       `json:"id"`
	TeamA  *Team     `json:"team_a"`
	TeamB  *Team     `json:"team_b"`
	Format string    `json:"format"`
	Event  *string   `json:"event"`
	Live   bool      `json:"live"`
	Date   time.Time `json:"date"`
}

Jump to

Keyboard shortcuts

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