maps

package
v0.0.0-...-fda175b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(
	r *gin.RouterGroup,
	service *MapAnalyticsService,
	memoryStore *persist.MemoryStore,
)

Types

type MapAnalytics

type MapAnalytics struct {
	MapId int `json:"-"`

	MapName string `json:"map_name"`
	Count   int    `json:"count"`
}

type MapAnalyticsRequest

type MapAnalyticsRequest struct {
	ServerId int `json:"server_id"`

	From time.Time `json:"date_from"`
	To   time.Time `json:"date_to"`

	Limit int `json:"limit"`
}

type MapAnalyticsResponse

type MapAnalyticsResponse struct {
	Items []MapAnalytics `json:"items"`
}

type MapAnalyticsService

type MapAnalyticsService struct {
	// contains filtered or unexported fields
}

func NewMapAnalyticsService

func NewMapAnalyticsService(db *sql.DB) *MapAnalyticsService

func (*MapAnalyticsService) GetMapAnalytics

func (s *MapAnalyticsService) GetMapAnalytics(
	req MapAnalyticsRequest,
) (*[]MapAnalytics, error)

Jump to

Keyboard shortcuts

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