package
0.0.0-20230305023648-e6a6dc69a49f
Repository: https://github.com/megaclan3000/megaclan3000.git
Documentation: pkg.go.dev
# Functions
NewSteamClient returrns a new SteamClient.
NewSteamConfig creates a new configuration struct from a path pointing to the json configuration file.
# Structs
Achievements is the nested struct to hold the "archivements" array returned by the steam API endopint GetUserStatsForGame.
Calculations holds additional values to be shown in the templates, that are calculated on-the-fly.
GameArchievements holds the players archievement data from the steam API endpoint UserStatsForGame.
GameExtras holds data in the same way as the other nested structs.
GameStats holds the players stats data from the steam API endpoint UserStatsForGame.
LastMatch hold additional stats calculated to be viewed in the templates.
Mapstat holds all values for a map to be marshalled into JSON.
PlayerHistory holds the players history data from the player_history table.
PlayerHistoryEntry holds on snapshot of the values that are tracked over time.
PlayerInfo contains the information to be shown of a given player.
PlayerSummary holds the players summary data from the steam API endpoint GetPlayerSummaries.
RecentlyPlayedGames holds the players summary data from the steam API endpoint GetRecentlyPlayedGames.
Stats is the nested struct to hold the "stats" array returned by the steam API endopint GetUserStatsForGame.
SteamClient acts as main interface to interact with the steam API and gather data.
SteamConfig struct holds the values as read from the configuration file config.json on startup.
UserStatsForGame holds the players summary data from the steam API endpoint GetUserStatsForGame.
Weaponstat holds all stat values for a weapon to be marshalled into JSON.