Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentAnalyticsFiltersResponse ¶
type AgentAnalyticsFiltersResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
AgentAnalyticsFiltersResponse represents the response for agent analytics filters
type AgentMetaReportRequest ¶
type AgentMetaReportRequest struct {
}
AgentMetaReportRequest represents the request for agent meta report
type AgentMetaResponse ¶
type AgentMetaResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
AgentMetaResponse represents the response for agent metadata
type AgentSnapshot ¶
type AgentSnapshot map[string]interface{}
AgentSnapshot represents a single agent's metadata snapshot
type AnalyticsFilter ¶
type AnalyticsFilter struct {
GameId string `json:"gameId"`
Filters interface{} `json:"filters"`
}
AnalyticsFilter represents a single analytics filter
type GetAnalyticsFiltersRequest ¶
type GetAnalyticsFiltersRequest struct{}
GetAnalyticsFiltersRequest represents the request to get analytics filters
type GetAnalyticsFiltersResponse ¶
type GetAnalyticsFiltersResponse struct {
Items []AnalyticsFilter `json:"items"`
Count int `json:"count"`
}
GetAnalyticsFiltersResponse represents the response with analytics filters
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) GetAnalyticsFilters ¶
GetAnalyticsFilters handles the analytics filters request
func (*Handler) UpdateMeta ¶
UpdateMeta handles the agent metadata update request
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) GetAnalyticsFilters ¶
func (s *Service) GetAnalyticsFilters(ctx context.Context, req *GetAnalyticsFiltersRequest) (*GetAnalyticsFiltersResponse, error)
GetAnalyticsFilters retrieves analytics filters for all games
func (*Service) UpdateMeta ¶
func (s *Service) UpdateMeta(ctx context.Context, req *UpdateMetaRequest) (*UpdateMetaResponse, error)
UpdateMeta retrieves and returns agent metadata
type UpdateMetaRequest ¶
type UpdateMetaRequest struct{}
UpdateMetaRequest represents the request to update agent metadata
type UpdateMetaResponse ¶
type UpdateMetaResponse struct {
Agents []AgentSnapshot `json:"agents"`
Count int `json:"count"`
Timestamp string `json:"timestamp"`
}
UpdateMetaResponse represents the response with agent metadata