Documentation ¶
Index ¶
- Constants
- func AppDetailsUrl(appId uint32) *url.URL
- func AppListUrl() *url.URL
- func AppReviewsUrl(appId uint32) *url.URL
- func AppendShortcut(kvShortcuts *steam_vdf.KeyValues, shortcut *Shortcut) error
- func DeckAppCompatibilityReportUrl(appId uint32) *url.URL
- func DecodeCategory(category int) string
- func DecodeLocToken(token string) string
- func DefaultSteamAppListUrl(_ string) *url.URL
- func GetShortcutByAppId(kvShortcuts *steam_vdf.KeyValues, appId uint32) *steam_vdf.KeyValues
- func NewsForAppUrl(appId uint32) *url.URL
- func RemoveShortcuts(kvShortcuts *steam_vdf.KeyValues, appIds ...uint32) error
- func ShortcutAppId(appName string) uint32
- func SteamCommunityUrl(appId uint32) *url.URL
- func SteamIdFromUserId(userIdStr string) (int64, error)
- func StorePageUrl(appId uint32) *url.URL
- func TrimLocToken(token string) string
- func UpdateShortcut(index string, kvShortcuts *steam_vdf.KeyValues, shortcut *Shortcut) error
- type App
- type AppList
- type AppNews
- type AppReviews
- type Author
- type BlogUrlGetter
- type DeckAppCompatibilityReport
- func (dacr *DeckAppCompatibilityReport) GetBlogUrl() string
- func (dacr *DeckAppCompatibilityReport) GetDisplayTypes() []string
- func (dacr *DeckAppCompatibilityReport) GetResults() []string
- func (dacr *DeckAppCompatibilityReport) IsSuccess() bool
- func (dacr *DeckAppCompatibilityReport) String() string
- type DisplayTypesGetter
- type GetAppListResponse
- type GetNewsForAppResponse
- type NewsItem
- type QuerySummary
- type ResultsGetter
- type Review
- type ReviewScoreDescGetter
- type Shortcut
- func (s *Shortcut) AllowDesktopConfigKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) AllowOverlayKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) AppIdKeyValue() *steam_vdf.KeyValues
- func (s *Shortcut) AppNameKeyValue() *steam_vdf.KeyValues
- func (s *Shortcut) DevkitGameIdKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) DevkitKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) DevkitOverrideAppIdKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) ExeKeyValue() *steam_vdf.KeyValues
- func (s *Shortcut) FlatpakAppIdKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) IconKeyValue() *steam_vdf.KeyValues
- func (s *Shortcut) IsHiddenKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) KeyValues(index string) *steam_vdf.KeyValues
- func (s *Shortcut) LastPlayTimeKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) LaunchOptionsKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) OpenVRKeyValues() *steam_vdf.KeyValues
- func (s *Shortcut) ShortcutPathKeyValue() *steam_vdf.KeyValues
- func (s *Shortcut) StartDirKeyValue() *steam_vdf.KeyValues
- func (s *Shortcut) TagsKeyValues() *steam_vdf.KeyValues
- type SteamAppIdGetter
- type SteamTagsGetter
- type SteamUrlFunc
- type StorePage
Constants ¶
View Source
const ( SteamPoweredHost = "steampowered.com" StoreHost = "store." + SteamPoweredHost ApiHost = "api." + SteamPoweredHost SteamCommunityHost = "steamcommunity.com" )
hosts
Variables ¶
This section is empty.
Functions ¶
func AppDetailsUrl ¶ added in v0.1.29
func AppListUrl ¶
func AppReviewsUrl ¶
func AppendShortcut ¶ added in v0.1.58
func DeckAppCompatibilityReportUrl ¶ added in v0.1.29
func DecodeCategory ¶ added in v0.1.31
func DecodeLocToken ¶ added in v0.1.30
func DefaultSteamAppListUrl ¶
DefaultSteamAppListUrl is a vangogh_local_data specific wrapper of steam_integration URL func
func GetShortcutByAppId ¶ added in v0.1.60
func NewsForAppUrl ¶
func RemoveShortcuts ¶ added in v0.1.61
func ShortcutAppId ¶ added in v0.1.60
func SteamCommunityUrl ¶
func SteamIdFromUserId ¶ added in v0.1.54
func StorePageUrl ¶
func TrimLocToken ¶ added in v0.1.46
Types ¶
type AppReviews ¶
type AppReviews struct { Success int `json:"success"` QuerySummary QuerySummary `json:"query_summary"` Reviews []Review `json:"reviews"` Cursor string `json:"cursor"` }
func (*AppReviews) GetReviewScoreDesc ¶
func (ar *AppReviews) GetReviewScoreDesc() string
type Author ¶
type Author struct { SteamId string `json:"steamid"` NumGamesOwned int `json:"num_games_owned"` NumReviews int `json:"num_reviews"` PlaytimeForever int `json:"playtime_forever"` PlaytimeLastTwoWeeks int `json:"playtime_last_two_weeks"` PlaytimeAtReview int `json:"playtime_at_review"` DeckPlaytimeAtReview int `json:"deck_playtime_at_review,omitempty"` LastPlayed int `json:"last_played"` }
type BlogUrlGetter ¶ added in v0.1.48
type BlogUrlGetter interface {
GetBlogUrl() string
}
type DeckAppCompatibilityReport ¶ added in v0.1.30
type DeckAppCompatibilityReport struct { Success int `json:"success"` Results struct { AppID uint32 `json:"appid"` ResolvedCategory int `json:"resolved_category"` ResolvedItems []struct { DisplayType int `json:"display_type"` LocToken string `json:"loc_token"` } `json:"resolved_items"` SteamDeckBlogUrl string `json:"steam_deck_blog_url"` SearchId interface{} `json:"search_id"` } `json:"results"` }
func (*DeckAppCompatibilityReport) GetBlogUrl ¶ added in v0.1.48
func (dacr *DeckAppCompatibilityReport) GetBlogUrl() string
func (*DeckAppCompatibilityReport) GetDisplayTypes ¶ added in v0.1.48
func (dacr *DeckAppCompatibilityReport) GetDisplayTypes() []string
func (*DeckAppCompatibilityReport) GetResults ¶ added in v0.1.32
func (dacr *DeckAppCompatibilityReport) GetResults() []string
func (*DeckAppCompatibilityReport) IsSuccess ¶ added in v0.1.30
func (dacr *DeckAppCompatibilityReport) IsSuccess() bool
func (*DeckAppCompatibilityReport) String ¶ added in v0.1.31
func (dacr *DeckAppCompatibilityReport) String() string
type DisplayTypesGetter ¶ added in v0.1.48
type DisplayTypesGetter interface {
GetDisplayTypes() []string
}
type GetAppListResponse ¶
type GetAppListResponse struct {
AppList AppList `json:"applist"`
}
type GetNewsForAppResponse ¶
type GetNewsForAppResponse struct {
AppNews AppNews `json:"appnews"`
}
type NewsItem ¶
type NewsItem struct { GId string `json:"gid"` Title string `json:"title"` Url string `json:"url"` IsExternalUrl bool `json:"is_external_url"` Author string `json:"author"` Contents string `json:"contents"` FeedLabel string `json:"feedlabel"` Date int64 `json:"date"` FeedName string `json:"feedname"` FeedType int `json:"feed_type"` AppId uint32 `json:"appid"` Tags []string `json:"tags"` }
type QuerySummary ¶
type ResultsGetter ¶ added in v0.1.48
type ResultsGetter interface {
GetResults() []string
}
type Review ¶
type Review struct { RecommendationId string `json:"recommendationid"` Author Author `json:"author"` Language string `json:"language"` Review string `json:"review"` TimestampCreated int64 `json:"timestamp_created"` TimestampUpdated int64 `json:"timestamp_updated"` VotedUp bool `json:"voted_up"` VotesUp int `json:"votes_up"` VotesFunny int `json:"votes_funny"` //BUG: Steam weighted_vote_score data contains values like "0.123456789" as well as 0 (no quotes) //which means we can't use either string (second value will fail), nor number (first value will fail) //skipping it for the time being //WeightedVoteScore string `json:"weighted_vote_score"` CommentCount int `json:"comment_count"` SteamPurchase bool `json:"steam_purchase"` ReceivedForFree bool `json:"received_for_free"` WrittenDuringEarlyAccess bool `json:"written_during_early_access"` PrimarilySteamDeck bool `json:"primarily_steam_deck"` }
type ReviewScoreDescGetter ¶
type ReviewScoreDescGetter interface {
GetReviewScoreDesc() string
}
type Shortcut ¶ added in v0.1.58
type Shortcut struct { AppId uint32 AppName string Exe string StartDir string Icon string ShortcutPath string LaunchOptions string IsHidden uint32 AllowDesktopConfig uint32 AllowOverlay uint32 OpenVR uint32 Devkit uint32 DevkitGameId string DevkitOverrideAppId string LastPlayTime uint32 FlatpakAppId string Tags []string }
func NewShortcut ¶ added in v0.1.58
func NewShortcut() *Shortcut
func (*Shortcut) AllowDesktopConfigKeyValues ¶ added in v0.1.58
func (*Shortcut) AllowOverlayKeyValues ¶ added in v0.1.58
func (*Shortcut) AppIdKeyValue ¶ added in v0.1.58
func (*Shortcut) AppNameKeyValue ¶ added in v0.1.58
func (*Shortcut) DevkitGameIdKeyValues ¶ added in v0.1.58
func (*Shortcut) DevkitKeyValues ¶ added in v0.1.58
func (*Shortcut) DevkitOverrideAppIdKeyValues ¶ added in v0.1.58
func (*Shortcut) ExeKeyValue ¶ added in v0.1.58
func (*Shortcut) FlatpakAppIdKeyValues ¶ added in v0.1.58
func (*Shortcut) IconKeyValue ¶ added in v0.1.58
func (*Shortcut) IsHiddenKeyValues ¶ added in v0.1.58
func (*Shortcut) LastPlayTimeKeyValues ¶ added in v0.1.58
func (*Shortcut) LaunchOptionsKeyValues ¶ added in v0.1.58
func (*Shortcut) OpenVRKeyValues ¶ added in v0.1.58
func (*Shortcut) ShortcutPathKeyValue ¶ added in v0.1.58
func (*Shortcut) StartDirKeyValue ¶ added in v0.1.58
func (*Shortcut) TagsKeyValues ¶ added in v0.1.58
type SteamAppIdGetter ¶ added in v0.1.20
type SteamAppIdGetter interface {
GetSteamAppId() uint32
}
type SteamTagsGetter ¶ added in v0.1.22
type SteamTagsGetter interface {
GetSteamTags() []string
}
type SteamUrlFunc ¶
Source Files ¶
- app_details_url.go
- app_list.go
- app_list_url.go
- app_news.go
- app_reviews.go
- app_reviews_url.go
- deck_app_compatibility_report.go
- deck_app_compatibility_report_decoders.go
- deck_app_compatibility_report_url.go
- interfaces.go
- loginuser_steamid.go
- news_for_app_url.go
- shortcut.go
- steam_appid_getter.go
- steam_community_url.go
- store_page.go
- store_page_url.go
- url_const.go
Click to show internal directories.
Click to hide internal directories.