steamapi

package
v0.0.0-...-86dd0aa Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessOwnedGames

func ProcessOwnedGames(games []SteamOwnedGame) error

For adding any additional processing/formatting to the owned games data

Types

type SteamOwnedGame

type SteamOwnedGame struct {
	AppId                   int     `json:"appid"`
	Name                    string  `json:"name"`
	PlaytimeForever         float64 `json:"playtime_forever"`
	ImgIconUrl              string  `json:"img_icon_url"`
	PlaytimeWindowsForever  float64 `json:"playtime_windows_forever"`
	PlaytimeMacForever      float64 `json:"playtime_mac_forever"`
	PlaytimeLinuxForever    float64 `json:"playtime_linux_forever"`
	PlaytimeDeckForever     float64 `json:"playtime_deck_forever"`
	RTimeLastPlayed         int64   `json:"rtime_last_played"`
	FormattedTimeLastPlayed string
}

func GetSteamDeckTop50Games

func GetSteamDeckTop50Games(steamId string) ([]SteamOwnedGame, error)

func GetSteamDeckTop50Wrapper

func GetSteamDeckTop50Wrapper(steamId string) []SteamOwnedGame

func GetSteamOwnedGames

func GetSteamOwnedGames(steamId string) ([]SteamOwnedGame, error)

type SteamOwnedGamesResponse

type SteamOwnedGamesResponse struct {
	Response struct {
		GamesCount int
		Games      []SteamOwnedGame
	}
}

Jump to

Keyboard shortcuts

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