Documentation
¶
Index ¶
- func SaveAnalyticsFiltersJSON(items []AnalyticsFilters) ([]byte, error)
- type AnalyticsFilters
- type AnalyticsFiltersQuery
- type AnalyticsQuery
- type BehaviorAdoptionBreakdownRequest
- type BehaviorAdoptionBreakdownResponse
- type BehaviorAdoptionRequest
- type BehaviorAdoptionResponse
- type BehaviorEvent
- type BehaviorEventsRequest
- type BehaviorEventsResponse
- type BehaviorFunnelRequest
- type BehaviorFunnelResponse
- type BehaviorPathsRequest
- type BehaviorPathsResponse
- type BehaviorRequest
- type BehaviorResponse
- type EpisodeMetrics
- type FeatureAdoption
- type FiltersGetRequest
- type FiltersGetResponse
- type FiltersUpdateRequest
- type FunnelStep
- type Handler
- func (h *Handler) Behavior(c *gin.Context)
- func (h *Handler) BehaviorAdoption(c *gin.Context)
- func (h *Handler) BehaviorAdoptionBreakdown(c *gin.Context)
- func (h *Handler) BehaviorEvents(c *gin.Context)
- func (h *Handler) BehaviorFunnel(c *gin.Context)
- func (h *Handler) BehaviorPaths(c *gin.Context)
- func (h *Handler) FiltersGet(c *gin.Context)
- func (h *Handler) FiltersUpdate(c *gin.Context)
- func (h *Handler) Ingest(c *gin.Context)
- func (h *Handler) Levels(c *gin.Context)
- func (h *Handler) LevelsEpisodes(c *gin.Context)
- func (h *Handler) LevelsMaps(c *gin.Context)
- func (h *Handler) Overview(c *gin.Context)
- func (h *Handler) Payments(c *gin.Context)
- func (h *Handler) PaymentsIngest(c *gin.Context)
- func (h *Handler) PaymentsProductTrend(c *gin.Context)
- func (h *Handler) PaymentsSummary(c *gin.Context)
- func (h *Handler) PaymentsTransactions(c *gin.Context)
- func (h *Handler) Realtime(c *gin.Context)
- func (h *Handler) RealtimeSeries(c *gin.Context)
- func (h *Handler) Retention(c *gin.Context)
- type IngestRequest
- type IngestResponse
- type LevelMetrics
- type LevelsEpisodesRequest
- type LevelsEpisodesResponse
- type LevelsMapsRequest
- type LevelsMapsResponse
- type LevelsRequest
- type LevelsResponse
- type MapMetrics
- type OverviewMetrics
- type OverviewRequest
- type OverviewResponse
- type PaymentTransaction
- type PaymentsIngestRequest
- type PaymentsIngestResponse
- type PaymentsMetrics
- type PaymentsProductTrendRequest
- type PaymentsProductTrendResponse
- type PaymentsRequest
- type PaymentsResponse
- type PaymentsSummary
- type PaymentsSummaryRequest
- type PaymentsSummaryResponse
- type PaymentsTransactionsRequest
- type PaymentsTransactionsResponse
- type ProductTrend
- type RealtimeMetrics
- type RealtimeRequest
- type RealtimeResponse
- type RealtimeSeriesRequest
- type RealtimeSeriesResponse
- type RetentionCohort
- type RetentionRequest
- type RetentionResponse
- type Service
- func (s *Service) Behavior(ctx context.Context, req *BehaviorRequest) (*BehaviorResponse, error)
- func (s *Service) BehaviorAdoption(ctx context.Context, req *BehaviorAdoptionRequest) (*BehaviorAdoptionResponse, error)
- func (s *Service) BehaviorAdoptionBreakdown(ctx context.Context, req *BehaviorAdoptionBreakdownRequest) (*BehaviorAdoptionBreakdownResponse, error)
- func (s *Service) BehaviorEvents(ctx context.Context, req *BehaviorEventsRequest) (*BehaviorEventsResponse, error)
- func (s *Service) BehaviorFunnel(ctx context.Context, req *BehaviorFunnelRequest) (*BehaviorFunnelResponse, error)
- func (s *Service) BehaviorPaths(ctx context.Context, req *BehaviorPathsRequest) (*BehaviorPathsResponse, error)
- func (s *Service) FiltersGet(ctx context.Context, req *FiltersGetRequest) (*FiltersGetResponse, error)
- func (s *Service) FiltersUpdate(ctx context.Context, req *FiltersUpdateRequest) (*FiltersGetResponse, error)
- func (s *Service) Ingest(ctx context.Context, req *IngestRequest) (*IngestResponse, error)
- func (s *Service) Levels(ctx context.Context, req *LevelsRequest) (*LevelsResponse, error)
- func (s *Service) LevelsEpisodes(ctx context.Context, req *LevelsEpisodesRequest) (*LevelsEpisodesResponse, error)
- func (s *Service) LevelsMaps(ctx context.Context, req *LevelsMapsRequest) (*LevelsMapsResponse, error)
- func (s *Service) Overview(ctx context.Context, req *OverviewRequest) (*OverviewResponse, error)
- func (s *Service) Payments(ctx context.Context, req *PaymentsRequest) (*PaymentsResponse, error)
- func (s *Service) PaymentsIngest(ctx context.Context, req *PaymentsIngestRequest) (*PaymentsIngestResponse, error)
- func (s *Service) PaymentsProductTrend(ctx context.Context, req *PaymentsProductTrendRequest) (*PaymentsProductTrendResponse, error)
- func (s *Service) PaymentsSummary(ctx context.Context, req *PaymentsSummaryRequest) (*PaymentsSummaryResponse, error)
- func (s *Service) PaymentsTransactions(ctx context.Context, req *PaymentsTransactionsRequest) (*PaymentsTransactionsResponse, error)
- func (s *Service) Realtime(ctx context.Context, req *RealtimeRequest) (*RealtimeResponse, error)
- func (s *Service) RealtimeSeries(ctx context.Context, req *RealtimeSeriesRequest) (*RealtimeSeriesResponse, error)
- func (s *Service) Retention(ctx context.Context, req *RetentionRequest) (*RetentionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveAnalyticsFiltersJSON ¶
func SaveAnalyticsFiltersJSON(items []AnalyticsFilters) ([]byte, error)
SaveAnalyticsFilters converts filters to JSON for storage
Types ¶
type AnalyticsFilters ¶
type AnalyticsFilters struct {
GameId string `json:"gameId"`
Filters interface{} `json:"filters"`
}
func LoadAnalyticsFilters ¶
func LoadAnalyticsFilters(data []byte) ([]AnalyticsFilters, error)
LoadAnalyticsFilters reads the stored filters from a JSON file
type AnalyticsFiltersQuery ¶
type AnalyticsFiltersQuery struct {
}
type AnalyticsQuery ¶
type BehaviorAdoptionRequest ¶
type BehaviorAdoptionResponse ¶
type BehaviorAdoptionResponse struct {
Features []FeatureAdoption `json:"features"`
}
type BehaviorEvent ¶
type BehaviorEventsRequest ¶
type BehaviorEventsResponse ¶
type BehaviorEventsResponse struct {
Items []BehaviorEvent `json:"items"`
Total int `json:"total"`
}
type BehaviorFunnelRequest ¶
type BehaviorFunnelResponse ¶
type BehaviorFunnelResponse struct {
Steps []FunnelStep `json:"steps"`
}
type BehaviorPathsRequest ¶
type BehaviorPathsResponse ¶
type BehaviorPathsResponse struct {
Paths map[string]interface{} `json:"paths"`
}
type BehaviorRequest ¶
type BehaviorResponse ¶
type EpisodeMetrics ¶
type FeatureAdoption ¶
type FiltersGetRequest ¶
type FiltersGetRequest struct {
GameId string `json:"gameId"`
}
type FiltersGetResponse ¶
type FiltersGetResponse struct {
Items []AnalyticsFilters `json:"items"`
}
type FiltersUpdateRequest ¶
type FiltersUpdateRequest struct {
GameId string `json:"gameId" binding:"required"`
Filters interface{} `json:"filters" binding:"required"`
}
type FunnelStep ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) BehaviorAdoption ¶
func (*Handler) BehaviorAdoptionBreakdown ¶
func (*Handler) BehaviorEvents ¶
func (*Handler) BehaviorFunnel ¶
func (*Handler) BehaviorPaths ¶
func (*Handler) FiltersGet ¶
func (*Handler) FiltersUpdate ¶
func (*Handler) LevelsEpisodes ¶
func (*Handler) LevelsMaps ¶
func (*Handler) PaymentsIngest ¶
func (*Handler) PaymentsProductTrend ¶
func (*Handler) PaymentsSummary ¶
func (*Handler) PaymentsTransactions ¶
func (*Handler) RealtimeSeries ¶
type IngestRequest ¶
type IngestResponse ¶
type LevelMetrics ¶
type LevelsEpisodesRequest ¶
type LevelsEpisodesResponse ¶
type LevelsEpisodesResponse struct {
Episodes []EpisodeMetrics `json:"episodes"`
}
type LevelsMapsRequest ¶
type LevelsMapsResponse ¶
type LevelsMapsResponse struct {
Maps []MapMetrics `json:"maps"`
}
type LevelsRequest ¶
type LevelsResponse ¶
type LevelsResponse struct {
Levels []LevelMetrics `json:"levels"`
}
type MapMetrics ¶
type MapMetrics struct {
MapId string `json:"mapId"`
HeatMap interface{} `json:"heatMap"`
DeathSpots interface{} `json:"deathSpots"`
}
type OverviewMetrics ¶
type OverviewRequest ¶
type OverviewResponse ¶
type OverviewResponse struct {
Metrics OverviewMetrics `json:"metrics"`
Trends map[string]interface{} `json:"trends"`
}
type PaymentTransaction ¶
type PaymentsIngestRequest ¶
type PaymentsIngestResponse ¶
type PaymentsMetrics ¶
type PaymentsProductTrendResponse ¶
type PaymentsProductTrendResponse struct {
Items []ProductTrend `json:"items"`
}
type PaymentsRequest ¶
type PaymentsResponse ¶
type PaymentsResponse struct {
Metrics PaymentsMetrics `json:"metrics"`
Trends map[string]interface{} `json:"trends"`
}
type PaymentsSummary ¶
type PaymentsSummaryRequest ¶
type PaymentsSummaryResponse ¶
type PaymentsSummaryResponse struct {
Items []PaymentsSummary `json:"items"`
}
type PaymentsTransactionsResponse ¶
type PaymentsTransactionsResponse struct {
Items []PaymentTransaction `json:"items"`
Total int `json:"total"`
Page int `json:"page"`
Size int `json:"size"`
}
type ProductTrend ¶
type RealtimeMetrics ¶
type RealtimeRequest ¶
type RealtimeResponse ¶
type RealtimeResponse struct {
RealtimeMetrics RealtimeMetrics `json:"realtimeMetrics"`
Timestamp string `json:"timestamp"`
}
type RealtimeSeriesRequest ¶
type RealtimeSeriesResponse ¶
type RealtimeSeriesResponse struct {
Series map[string]interface{} `json:"series"`
}
type RetentionCohort ¶
type RetentionRequest ¶
type RetentionResponse ¶
type RetentionResponse struct {
Cohorts []RetentionCohort `json:"cohorts"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) Behavior ¶
func (s *Service) Behavior(ctx context.Context, req *BehaviorRequest) (*BehaviorResponse, error)
func (*Service) BehaviorAdoption ¶
func (s *Service) BehaviorAdoption(ctx context.Context, req *BehaviorAdoptionRequest) (*BehaviorAdoptionResponse, error)
func (*Service) BehaviorAdoptionBreakdown ¶
func (s *Service) BehaviorAdoptionBreakdown(ctx context.Context, req *BehaviorAdoptionBreakdownRequest) (*BehaviorAdoptionBreakdownResponse, error)
func (*Service) BehaviorEvents ¶
func (s *Service) BehaviorEvents(ctx context.Context, req *BehaviorEventsRequest) (*BehaviorEventsResponse, error)
func (*Service) BehaviorFunnel ¶
func (s *Service) BehaviorFunnel(ctx context.Context, req *BehaviorFunnelRequest) (*BehaviorFunnelResponse, error)
func (*Service) BehaviorPaths ¶
func (s *Service) BehaviorPaths(ctx context.Context, req *BehaviorPathsRequest) (*BehaviorPathsResponse, error)
func (*Service) FiltersGet ¶
func (s *Service) FiltersGet(ctx context.Context, req *FiltersGetRequest) (*FiltersGetResponse, error)
func (*Service) FiltersUpdate ¶
func (s *Service) FiltersUpdate(ctx context.Context, req *FiltersUpdateRequest) (*FiltersGetResponse, error)
func (*Service) Ingest ¶
func (s *Service) Ingest(ctx context.Context, req *IngestRequest) (*IngestResponse, error)
func (*Service) Levels ¶
func (s *Service) Levels(ctx context.Context, req *LevelsRequest) (*LevelsResponse, error)
func (*Service) LevelsEpisodes ¶
func (s *Service) LevelsEpisodes(ctx context.Context, req *LevelsEpisodesRequest) (*LevelsEpisodesResponse, error)
func (*Service) LevelsMaps ¶
func (s *Service) LevelsMaps(ctx context.Context, req *LevelsMapsRequest) (*LevelsMapsResponse, error)
func (*Service) Overview ¶
func (s *Service) Overview(ctx context.Context, req *OverviewRequest) (*OverviewResponse, error)
func (*Service) Payments ¶
func (s *Service) Payments(ctx context.Context, req *PaymentsRequest) (*PaymentsResponse, error)
func (*Service) PaymentsIngest ¶
func (s *Service) PaymentsIngest(ctx context.Context, req *PaymentsIngestRequest) (*PaymentsIngestResponse, error)
func (*Service) PaymentsProductTrend ¶
func (s *Service) PaymentsProductTrend(ctx context.Context, req *PaymentsProductTrendRequest) (*PaymentsProductTrendResponse, error)
func (*Service) PaymentsSummary ¶
func (s *Service) PaymentsSummary(ctx context.Context, req *PaymentsSummaryRequest) (*PaymentsSummaryResponse, error)
func (*Service) PaymentsTransactions ¶
func (s *Service) PaymentsTransactions(ctx context.Context, req *PaymentsTransactionsRequest) (*PaymentsTransactionsResponse, error)
func (*Service) Realtime ¶
func (s *Service) Realtime(ctx context.Context, req *RealtimeRequest) (*RealtimeResponse, error)
func (*Service) RealtimeSeries ¶
func (s *Service) RealtimeSeries(ctx context.Context, req *RealtimeSeriesRequest) (*RealtimeSeriesResponse, error)
func (*Service) Retention ¶
func (s *Service) Retention(ctx context.Context, req *RetentionRequest) (*RetentionResponse, error)
Click to show internal directories.
Click to hide internal directories.