Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatasetsReturn ¶
type DatasetsReturn struct {
Data []PointReturn `json:"data"`
}
DatasetsReturn main type returned containing all the datasets
type PointReturn ¶
PointReturn one point for a dataset
type TimeFrame ¶
type TimeFrame byte
TimeFrame type for different timeframe
const ( UnknownTimeStamp TimeFrame = iota DailyTimeStamp WeeklyTimeStamp MonthlyTimeStamp YearlyTimeStamp )
all differents TimeFrame
func (TimeFrame) GetUnixTimeFrame ¶
GetUnixTimeFrame return the unix time of the timeframe
type WeaponsPattern ¶
WeaponsPattern type of stats for demos
func (WeaponsPattern) GetProgression ¶
func (wp WeaponsPattern) GetProgression( weaponsStatsTimeFramesReturn []*WeaponsStatsTimeFrameReturn, steamID string, ) error
GetProgression returns the progression of the demos
type WeaponsStatsReturn ¶
type WeaponsStatsReturn struct { WeaponType common.EquipmentType `json:"weaponType"` WeaponClass common.EquipmentClass `json:"weaponClass"` WeaponName string `json:"weaponName"` FirstBulletAccuracy DatasetsReturn `json:"firstBulletAccuracy"` FirstBulletHS DatasetsReturn `json:"firstBulletHS"` BulletAccuracy DatasetsReturn `json:"bulletAccuracy"` HSPercentage DatasetsReturn `json:"hSPercentage"` NbrBulletsFired DatasetsReturn `json:"nbrBulletsFired"` AverageVelocityAttacker DatasetsReturn `json:"averageVelocityAttacker"` NbrBulletFired int `json:"-"` NbrBulletHit int `json:"-"` NbrBulletHS int `json:"-"` NbrFirstBulletFired int `json:"-"` NbrFirstBulletHit int `json:"-"` NbrFirstBulletHS int `json:"-"` CumulativeVelocityAttacker float64 `json:"-"` NbrGame int `json:"-"` }
WeaponsStatsReturn stats for a weapon
type WeaponsStatsTimeFrameReturn ¶
type WeaponsStatsTimeFrameReturn struct { TimeFrame TimeFrame `json:"-"` TimeFrameStr string `json:"timeFrame"` Index int `json:"index"` WeaponStats WeaponsStatsReturn `json:"weaponStats"` WeaponTypeStats map[common.EquipmentType]*WeaponsStatsReturn `json:"weaponTypeStats"` WeaponstatsPerSide map[int]*WeaponsStatsReturn `json:"weaponstatsPerSide"` // contains filtered or unexported fields }
WeaponsStatsTimeFrameReturn type of stats for weapon
Click to show internal directories.
Click to hide internal directories.