Documentation
¶
Index ¶
- Constants
- func AppListUrl() *url.URL
- func AppReviewsUrl(appId uint32) *url.URL
- func DefaultSteamAppListUrl(_ string) *url.URL
- func NewsForAppUrl(appId uint32) *url.URL
- func ProtonDBUrl(appId uint32) *url.URL
- func SteamCommunityUrl(appId uint32) *url.URL
- func StorePageUrl(appId uint32) *url.URL
- type App
- type AppList
- type AppNews
- type AppReviews
- type Author
- type GetAppListResponse
- type GetNewsForAppResponse
- type NewsItem
- type QuerySummary
- type Review
- type ReviewScoreDescGetter
- type SteamUrlFunc
Constants ¶
View Source
const ( SteamPoweredHost = "steampowered.com" StoreHost = "store." + SteamPoweredHost ApiHost = "api." + SteamPoweredHost SteamCommunityHost = "steamcommunity.com" )
hosts
Variables ¶
This section is empty.
Functions ¶
func AppListUrl ¶
func AppReviewsUrl ¶ added in v0.1.7
func DefaultSteamAppListUrl ¶ added in v0.1.15
DefaultSteamAppListUrl is a vangogh_local_data specific wrapper of steam_integration URL func
func NewsForAppUrl ¶ added in v0.1.9
func ProtonDBUrl ¶ added in v0.1.18
func SteamCommunityUrl ¶ added in v0.1.2
func StorePageUrl ¶ added in v0.1.14
Types ¶
type AppReviews ¶ added in v0.1.7
type AppReviews struct {
Success int `json:"success"`
QuerySummary QuerySummary `json:"query_summary"`
Reviews []Review `json:"reviews"`
Cursor string `json:"cursor"`
}
func (*AppReviews) GetReviewScoreDesc ¶ added in v0.1.12
func (ar *AppReviews) GetReviewScoreDesc() string
type Author ¶ added in v0.1.7
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"`
LastPlayed int `json:"last_played"`
}
type GetAppListResponse ¶
type GetAppListResponse struct {
AppList AppList `json:"applist"`
}
type GetNewsForAppResponse ¶ added in v0.1.4
type GetNewsForAppResponse struct {
AppNews AppNews `json:"appnews"`
}
type NewsItem ¶ added in v0.1.4
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 ¶ added in v0.1.7
type Review ¶ added in v0.1.7
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"`
}
type ReviewScoreDescGetter ¶ added in v0.1.12
type ReviewScoreDescGetter interface {
GetReviewScoreDesc() string
}
type SteamUrlFunc ¶ added in v0.1.10
Click to show internal directories.
Click to hide internal directories.