collection

package
v0.0.0-...-e06870b Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game struct {
	GameID string       `json:"game_id,omitempty" bson:"game_id,omitempty"`
	Away   TeamGameInfo `json:"away,omitempty" bson:"away,omitempty"`
	Home   TeamGameInfo `json:"home,omitempty" bson:"home,omitempty"`
}

type Player

type Player struct {
	Name string `json:"name,omitempty" bson:"name,omitempty"`
	Team string `json:"team,omitempty" bson:"team,omitempty"`
}

type PlayerGameInfo

type PlayerGameInfo struct {
	GameID      string      `json:"game_id,omitempty" bson:"game_id,omitempty"`
	Player      Player      `json:"player,omitempty" bson:"player,omitempty"`
	PlayerStats PlayerStats `json:"player_stats,omitempty" bson:"player_stats,omitempty"`
}

type PlayerStats

type PlayerStats struct {
	TwoPointMade      int `json:"two_point_made,omitempty" bson:"two_point_made,omitempty"`
	TwoPointAttempt   int `json:"two_point_attempt,omitempty" bson:"two_point_attempt,omitempty"`
	ThreePointMade    int `json:"three_point_made,omitempty" bson:"three_point_made,omitempty"`
	ThreePointAttempt int `json:"three_point_attempt,omitempty" bson:"three_point_attempt,omitempty"`
	Assist            int `json:"assist,omitempty" bson:"assist,omitempty"`
}

type ScheduledGame

type ScheduledGame struct {
	Game     Game `json:"game,omitempty" bson:"game,omitempty"`
	Duration int  `json:"duration,omitempty" bson:"duration,omitempty"`
}

type Team

type Team struct {
	Abbreviation string   `json:"abbreviation,omitempty" bson:"abbreviation,omitempty"`
	Name         string   `json:"name,omitempty" bson:"name,omitempty"`
	Players      []Player `json:"players,omitempty" bson:"players,omitempty"`
}

type TeamGameInfo

type TeamGameInfo struct {
	GameID    string           `json:"game_id,omitempty" bson:"game_id,omitempty"`
	Team      Team             `json:"team,omitempty" bson:"team,omitempty"`
	Players   []PlayerGameInfo `json:"players,omitempty" bson:"players,omitempty"`
	TeamStats TeamStats        `json:"team_stats,omitempty" bson:"team_stats,omitempty"`
}

type TeamStats

type TeamStats struct {
	GameID string `json:"game_id,omitempty" bson:"game_id,omitempty"`
	Score  int    `json:"score,omitempty" bson:"score,omitempty"`
}

Jump to

Keyboard shortcuts

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