Documentation ¶
Index ¶
- func RegisterRoutes(r *gin.RouterGroup, service *UserAnalyticsService, ...)
- type AccuracyHist
- type AccuracyHistItem
- type GetTeammatesRequest
- type GetTeammatesResponse
- type GetTeammatesResponseItem
- type PlayTimeHist
- type PlayTimeHistItem
- type UserAnalyticsRequest
- type UserAnalyticsResponse
- type UserAnalyticsService
- type UserPerkHistRequest
- type UserPerksAnalyticsRequest
- type UserPerksAnalyticsResponse
- type UserPerksAnalyticsResponseItem
- type UsersTopType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes( r *gin.RouterGroup, service *UserAnalyticsService, memoryStore *persist.MemoryStore, )
Types ¶
type AccuracyHist ¶
type AccuracyHist struct {
Items []AccuracyHistItem `json:"items"`
}
type AccuracyHistItem ¶
type GetTeammatesRequest ¶
type GetTeammatesResponse ¶
type GetTeammatesResponse struct {
Items []*GetTeammatesResponseItem `json:"items"`
}
type PlayTimeHist ¶
type PlayTimeHist struct {
Items []PlayTimeHistItem `json:"items"`
}
type PlayTimeHistItem ¶
type UserAnalyticsRequest ¶
type UserAnalyticsResponse ¶
type UserAnalyticsService ¶
type UserAnalyticsService struct {
// contains filtered or unexported fields
}
func NewUserAnalyticsService ¶
func NewUserAnalyticsService(db *sql.DB) *UserAnalyticsService
func (*UserAnalyticsService) GetPerksAnalytics ¶
func (s *UserAnalyticsService) GetPerksAnalytics( req UserPerksAnalyticsRequest, ) (*UserPerksAnalyticsResponse, error)
func (*UserAnalyticsService) GetUserAnalytics ¶
func (s *UserAnalyticsService) GetUserAnalytics( req UserAnalyticsRequest, ) (*UserAnalyticsResponse, error)
func (*UserAnalyticsService) Inject ¶
func (s *UserAnalyticsService) Inject( userService *users.UserService, )
type UserPerkHistRequest ¶
type UserPerksAnalyticsResponse ¶
type UserPerksAnalyticsResponse struct { AverageZedtime float64 `json:"avg_zt"` Items []UserPerksAnalyticsResponseItem `json:"items"` }
type UserPerksAnalyticsResponseItem ¶
type UserPerksAnalyticsResponseItem struct { Perk int `json:"perk"` Games int `json:"games"` Wins int `json:"wins"` Kills int `json:"kills"` LargeKills int `json:"large_kills"` Waves int `json:"waves"` Deaths int `json:"deaths"` Accuracy float64 `json:"accuracy"` HSAccuracy float64 `json:"hs_accuracy"` DamageDealt int `json:"damage_dealt"` DamageTaken int `json:"damage_taken"` HealsGiven int `json:"heals_given"` Minutes int `json:"minutes"` }
type UsersTopType ¶
type UsersTopType = int
const ( TotalGames UsersTopType = iota + 1 TotalDeaths Accuracy HsAccuracy TotalDamage MostDamage TotalKills TotalLargeKills TotalHuskRages TotalHeals AverageZedtime TotalPlaytime )
Click to show internal directories.
Click to hide internal directories.