data

package
v0.0.0-...-b88b688 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectAll

func CollectAll(players []Player) (map[Player]PlayerStats, error)

Types

type ApiCompStats

type ApiCompStats struct {
	Games ApiGameStats `json:"games"`
}

type ApiGameStats

type ApiGameStats struct {
	Played int `json:"played"`
	Won    int `json:"won"`
}

type ApiRatings

type ApiRatings struct {
	Level int    `json:"level"`
	Role  string `json:"role"`
}

type ApiResult

type ApiResult struct {
	CompetitiveStats ApiCompStats `json:"competitiveStats"`
	Ratings          []ApiRatings
}

type Date

type Date time.Time

func (Date) MarshalJSON

func (t Date) MarshalJSON() ([]byte, error)

type Player

type Player struct {
	Name   string `json:"name"`
	Number int    `json:"number"`
}

type PlayerStats

type PlayerStats struct {
	CollectionDate Date
	Player         Player
	GamesPlayed    int
	GamesWon       int
	TankLevel      int
	DamageLevel    int
	SupportLevel   int
}

func CollectUser

func CollectUser(player Player) (PlayerStats, error)

Jump to

Keyboard shortcuts

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