agent

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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 NewHandler(service *Service) *Handler

func (*Handler) GetAnalyticsFilters

func (h *Handler) GetAnalyticsFilters(c *gin.Context)

GetAnalyticsFilters handles the analytics filters request

func (*Handler) UpdateMeta

func (h *Handler) UpdateMeta(c *gin.Context)

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL