Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UbiStatsURLTemplate = template.Must(template.New("statsURL").Parse(
"https://prod.datadev.ubisoft.com/v1/profiles/{{urlquery .ProfileID}}/playerstats?spaceId=5172a557-50b5-4665-b7db-e3f2e8c5041d&view=current&aggregation={{urlquery .Aggregation}}&gameMode=ranked,unranked,casual&platform=PC&teamRole=attacker,defender&seasons={{urlquery .Season}}",
))
Functions ¶
This section is empty.
Types ¶
type MapStats ¶
type MapStats struct {
// contains filtered or unexported fields
}
MapStats provides stats aggregated by map.
func (*MapStats) AggregationType ¶
func (*MapStats) TeamRoleType ¶
func (s *MapStats) TeamRoleType() gameModeStatsType
func (*MapStats) UnmarshalJSON ¶
type MovingTrendStats ¶
type MovingTrendStats struct {
Casual *movingTrendTeamRoles
Unranked *movingTrendTeamRoles
Ranked *movingTrendTeamRoles
// contains filtered or unexported fields
}
MovingTrendStats provides stats without any specific aggregation, but with trends across a specific timeframe.
func (*MovingTrendStats) AggregationType ¶
func (s *MovingTrendStats) AggregationType() string
func (*MovingTrendStats) TeamRoleType ¶
func (s *MovingTrendStats) TeamRoleType() gameModeStatsType
func (*MovingTrendStats) UnmarshalJSON ¶
func (s *MovingTrendStats) UnmarshalJSON(data []byte) error
type OperatorStats ¶
type OperatorStats struct {
// contains filtered or unexported fields
}
OperatorStats provides stats aggregated by operator.
func (*OperatorStats) AggregationType ¶
func (s *OperatorStats) AggregationType() string
func (*OperatorStats) TeamRoleType ¶
func (s *OperatorStats) TeamRoleType() gameModeStatsType
func (*OperatorStats) UnmarshalJSON ¶
func (s *OperatorStats) UnmarshalJSON(data []byte) error
type Provider ¶
type Provider interface {
json.Unmarshaler
AggregationType() string // type of aggregation to be used in URL query
TeamRoleType() gameModeStatsType // type of team role to be used in URL query
}
Provider should be implemented by statistics structs to enable it to be unmarshalled properly into the corresponding struct.
type SummarizedStats ¶
type SummarizedStats struct {
// contains filtered or unexported fields
}
SummarizedStats provides stats without any specific aggregation.
func (*SummarizedStats) AggregationType ¶
func (s *SummarizedStats) AggregationType() string
func (*SummarizedStats) TeamRoleType ¶
func (s *SummarizedStats) TeamRoleType() gameModeStatsType
func (*SummarizedStats) UnmarshalJSON ¶
func (s *SummarizedStats) UnmarshalJSON(data []byte) error
type UbiStatsURLParams ¶
type WeaponStats ¶
type WeaponStats struct {
// contains filtered or unexported fields
}
WeaponStats provides stats aggregated by weapon type and name.
func (*WeaponStats) AggregationType ¶
func (s *WeaponStats) AggregationType() string
func (*WeaponStats) TeamRoleType ¶
func (s *WeaponStats) TeamRoleType() gameModeStatsType
func (*WeaponStats) UnmarshalJSON ¶
func (s *WeaponStats) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.