steam

package
v0.0.0-...-3ff8cea Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentlyPlaying

func GetCurrentlyPlaying(cfg config.Config, ps *playback.PlaybackSystem, client http.Client)

Types

type SteamAppDetail

type SteamAppDetail struct {
	Type        string   `json:"type"`
	Name        string   `json:"name"`
	HeaderImage string   `json:"header_image"`
	Developers  []string `json:"developers"`
}

type SteamAppResponse

type SteamAppResponse struct {
	Data SteamAppDetail `json:"data"`
}

type SteamPlayerSummary

type SteamPlayerSummary struct {
	Response SteamResponse `json:"response"`
}

type SteamResponse

type SteamResponse struct {
	Players []SteamUser `json:"players"`
}

type SteamUser

type SteamUser struct {
	GameID       string `json:"gameid"`
	PersonaState int    `json:"personastate"`
}

Jump to

Keyboard shortcuts

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