model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Achievement

type Achievement struct {
	Event Event
	Place string
}

type Country

type Country struct {
	Name string
	Code string
}

type Event

type Event struct {
	Name string
	ID   *int
}

type EventFormat

type EventFormat struct {
	Type        string
	Description string
}

type EventPrizeDistribution

type EventPrizeDistribution struct {
	Place        string
	Prize        string
	OtherPrize   string
	QualifiesFor *Event
	Team         *Team
}

type EventResults

type EventResults struct {
	Month  time.Month
	Events []SimpleEvent
}

type EventTeam

type EventTeam struct {
	Team
	ReasonForParticipation string
	RankDuringEvent        *int
}

type FullEvent

type FullEvent struct {
	ID                int
	Name              string
	DateStart         time.Time
	DateEnd           time.Time
	PrizePool         string
	Teams             []EventTeam
	Location          Country
	PrizeDistribution []EventPrizeDistribution
	Formats           []EventFormat
	RelatedEvents     []Event
	MapPool           []enum.MapSlug
}

type FullPlayer

type FullPlayer struct {
	Player
	Ign          string
	Image        *string
	Age          *int
	Country      Country
	Team         Team
	Twitter      *string
	Twitch       *string
	Facebook     *string
	Statistics   Statistics
	Achievements []Achievement
}

type FullPlayerStats

type FullPlayerStats struct {
	Player
	Ign        *string
	Image      *string
	Age        *int
	Country    *Country
	Team       *Team
	Statistics Statistics
}

type Player

type Player struct {
	Name string
	ID   *int
}

type PlayerRanking

type PlayerRanking struct {
	Player
	Rating float32
}

type SimpleEvent

type SimpleEvent struct {
	ID            int
	Name          string
	DateStart     *time.Time
	DateEnd       *time.Time
	PrizePool     string
	NumberOfTeams *int
	Location      Country
	Type          enum.EventType
}

type Statistics

type Statistics struct {
	Kills                   int
	Headshots               float32
	Death                   int
	KDRatio                 float32
	DamgePerRound           float32
	GrenadeDamge            float32
	MapsPlayed              int
	RoundsPlayed            int
	KillsPerRound           float32
	AssistsPerRound         float32
	DeathsPerRound          float32
	SavedByTeammatePerRound float32
	SavedTeammatesPerRound  float32
	Rating                  float32
	RoundsContributed       float32
}

type Team

type Team struct {
	Name string
	ID   *int //optional
}

type UpcomingMatch added in v0.2.0

type UpcomingMatch struct {
	ID     *int
	Team1  Team
	Team2  Team
	Date   time.Time
	Event  Event
	Format string
}

Jump to

Keyboard shortcuts

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