Skip to content

StatisticsController ​

StatisticsController exposes aggregated launcher statistics to the frontend. It stays limited to DTO conversion and feature invocation.

  • Methods: 1
  • Referenced types: 1

Methods ​

GetOverviewStatistics ​

GetOverviewStatistics returns aggregate playtime, launch, instance, and mod statistics.

Go ​

go
GetOverviewStatistics() (StatisticsDTO, error)

TypeScript ​

ts
GetOverviewStatistics(): Promise<StatisticsDTO>

Returns ​

Go typeTypeScript type
StatisticsDTOStatisticsDTO

Example ​

ts
const getOverviewStatistics = await GetOverviewStatistics()

Source ​

internal/transport/wails/statistics_controller.go:25