Documentation ¶
Index ¶
- Constants
- Variables
- func AggregateArticleFeeds() (aggregations []helpers.TupleStringInt, err error)
- func AggregatePlayerCountries() (aggregations map[string]int64, err error)
- func DeleteAndRebuildAchievementsIndex()
- func DeleteAndRebuildAppsIndex()
- func DeleteAndRebuildArticlesIndex()
- func DeleteAndRebuildBundlesIndex()
- func DeleteAndRebuildGroupsIndex()
- func DeleteAndRebuildPlayersIndex()
- func DeleteDocument(index string, key string) error
- func GetMostExpensiveApp(code steamapi.ProductCC) (top float64, err error)
- func IndexAchievement(achievement Achievement) error
- func IndexAchievementBulk(achievements map[string]Achievement) error
- func IndexApp(a App) error
- func IndexArticle(article Article) error
- func IndexArticlesBulk(articles map[string]Article) error
- func IndexBundle(bundle Bundle) error
- func IndexGroup(g Group) error
- func IndexPlayer(p Player) error
- func UpdateDocumentFields(index string, key string, doc map[string]interface{}) error
- type Achievement
- type App
- func GetUpcomingGames() (apps []App, err error)
- func SearchAppsAdvanced(offset int, limit int, search string, sorters []elastic.Sorter, ...) (apps []App, total int64, err error)
- func SearchAppsRandom(filters []elastic.Query) (app App, count int64, err error)
- func SearchAppsSimple(limit int, search string) (apps []App, err error)
- func (app App) GetBackground() string
- func (app App) GetCommunityLink() string
- func (app App) GetFollowers() string
- func (app App) GetGroupID() string
- func (app App) GetHeaderImage() string
- func (app App) GetID() int
- func (app App) GetIcon() string
- func (app App) GetIconAbsolute() string
- func (app App) GetMarkedName() string
- func (app App) GetMovies() (movies []helpers.AppVideo)
- func (app App) GetName() string
- func (app App) GetPath() string
- func (app App) GetPathAbsolute() string
- func (app App) GetPlayLink() template.URL
- func (app App) GetPlayersPeakWeek() int
- func (app App) GetPrices() (prices helpers.ProductPrices)
- func (app App) GetReleaseDateNice() string
- func (app App) GetReleaseDateNiceRounded() string
- func (app App) GetReviewScore() string
- func (app App) GetScreenshots() (screenshots []helpers.AppImage)
- func (app App) GetStoreLink() string
- func (app App) GetType() string
- type Article
- func (article Article) GetAppIcon() string
- func (article Article) GetAppName() string
- func (article Article) GetAppPath() string
- func (article Article) GetArticleIcon() string
- func (article Article) GetBody() template.HTML
- func (article Article) GetBodyTruncated() template.HTML
- func (article Article) GetDate() string
- func (article Article) GetFeedName() string
- func (article Article) GetHeaderImage() string
- func (article Article) OutputForJSON() []interface{}
- type Bundle
- func (bundle Bundle) GetApps() int
- func (bundle Bundle) GetCreated() time.Time
- func (bundle Bundle) GetDiscount() int
- func (bundle Bundle) GetDiscountHighest() int
- func (bundle Bundle) GetDiscountSale() int
- func (bundle Bundle) GetID() int
- func (bundle Bundle) GetName() string
- func (bundle Bundle) GetPackages() int
- func (bundle Bundle) GetPath() string
- func (bundle Bundle) GetPrices() map[steamapi.ProductCC]int
- func (bundle Bundle) GetPricesFormatted() (ret map[steamapi.ProductCC]string)
- func (bundle Bundle) GetPricesSaleFormatted() map[steamapi.ProductCC]string
- func (bundle Bundle) GetScore() float64
- func (bundle Bundle) GetStoreLink() string
- func (bundle Bundle) GetType() string
- func (bundle Bundle) GetUpdated() time.Time
- func (bundle Bundle) IsGiftable() bool
- func (bundle Bundle) OutputForJSON() (output []interface{})
- type Group
- func (group Group) GetAbbr() string
- func (group Group) GetGameLink() string
- func (group Group) GetGroupLink() string
- func (group Group) GetHeadline() string
- func (group Group) GetIcon() string
- func (group Group) GetName() string
- func (group Group) GetNameMarked() string
- func (group Group) GetPath() string
- func (group Group) GetPathAbsolute() string
- func (group Group) GetTrend() string
- type Player
- func (player Player) GetAchievements() int
- func (player Player) GetAvatar() string
- func (player Player) GetAvatar2() string
- func (player Player) GetAvatarAbsolute() string
- func (player Player) GetBadges() int
- func (player Player) GetBadgesFoil() int
- func (player Player) GetCommunityLink() string
- func (player Player) GetCountry() string
- func (player Player) GetFlag() string
- func (player Player) GetGameBans() int
- func (player Player) GetGamesCount() int
- func (player Player) GetLastBan() time.Time
- func (player Player) GetLevel() int
- func (player Player) GetName() string
- func (player Player) GetNameMarked() string
- func (player Player) GetPath() string
- func (player Player) GetPathAbsolute() string
- func (player Player) GetPlaytime() int
- func (player Player) GetRanks() map[helpers.RankMetric]int
- func (player Player) GetVACBans() int
Constants ¶
View Source
const ( IndexAchievements = "achievements" IndexBundles = "bundles" IndexGroups = "groups" IndexArticles = "articles" IndexApps = "apps" IndexGlobal = "global" IndexPlayers = "players" )
Variables ¶
View Source
var ErrNoResult = errors.New("no result")
Functions ¶
func AggregateArticleFeeds ¶
func AggregateArticleFeeds() (aggregations []helpers.TupleStringInt, err error)
func DeleteAndRebuildAchievementsIndex ¶
func DeleteAndRebuildAchievementsIndex()
noinspection GoUnusedExportedFunction
func DeleteAndRebuildAppsIndex ¶
func DeleteAndRebuildAppsIndex()
noinspection GoUnusedExportedFunction
func DeleteAndRebuildArticlesIndex ¶
func DeleteAndRebuildArticlesIndex()
noinspection GoUnusedExportedFunction
func DeleteAndRebuildBundlesIndex ¶
func DeleteAndRebuildBundlesIndex()
noinspection GoUnusedExportedFunction
func DeleteAndRebuildGroupsIndex ¶
func DeleteAndRebuildGroupsIndex()
noinspection GoUnusedExportedFunction
func DeleteAndRebuildPlayersIndex ¶
func DeleteAndRebuildPlayersIndex()
noinspection GoUnusedExportedFunction
func DeleteDocument ¶
func GetMostExpensiveApp ¶
func IndexAchievement ¶
func IndexAchievement(achievement Achievement) error
func IndexAchievementBulk ¶
func IndexAchievementBulk(achievements map[string]Achievement) error
func IndexArticle ¶
func IndexArticlesBulk ¶
func IndexBundle ¶
func IndexGroup ¶
func IndexPlayer ¶
Types ¶
type Achievement ¶
type Achievement struct { ID string `json:"id"` Name string `json:"name"` Icon string `json:"icon"` Description string `json:"description"` Hidden bool `json:"hidden"` Completed float64 `json:"completed"` AppID int `json:"app_id"` AppName string `json:"app_name"` AppOwners int64 `json:"app_owners"` NameMarked string `json:"-"` Score float64 `json:"-"` }
func SearchAppAchievements ¶
func SearchAppAchievements(offset int, search string, sorters []elastic.Sorter) (achievements []Achievement, total int64, err error)
func (Achievement) GetAppName ¶
func (achievement Achievement) GetAppName() string
func (Achievement) GetAppPath ¶
func (achievement Achievement) GetAppPath() string
func (Achievement) GetCompleed ¶
func (achievement Achievement) GetCompleed() string
func (Achievement) GetIcon ¶
func (achievement Achievement) GetIcon() string
func (Achievement) GetKey ¶
func (achievement Achievement) GetKey() string
type App ¶
type App struct { AchievementsAvg float64 `json:"achievements_avg"` AchievementsCount int `json:"achievements_counts"` AchievementsIcons []helpers.Tuple `json:"achievements_icons"` Aliases []string `json:"aliases"` Background string `json:"background"` Categories []int `json:"categories"` Developers []int `json:"developers"` FollowersCount int `json:"followers"` Genres []int `json:"genres"` GroupID string `json:"group_id"` Icon string `json:"icon"` ID int `json:"id"` MicroTrailor string `json:"micro_trailor"` Movies string `json:"movies"` MoviesCount int `json:"movies_count"` Name string `json:"name"` NameLC string `json:"name_lc"` Platforms []string `json:"platforms"` PlayersCount int `json:"players"` // Peak week Prices helpers.ProductPrices `json:"prices"` Publishers []int `json:"publishers"` ReleaseDateOriginal string `json:"release_date_original"` ReleaseDate int64 `json:"release_date"` ReleaseDateRounded int64 `json:"release_date_rounded"` ReviewScore float64 `json:"score"` ReviewsCount int `json:"reviews_count"` Screenshots string `json:"screenshots"` ScreenshotsCount int `json:"screenshots_count"` Tags []int `json:"tags"` Trend float64 `json:"trend"` Type string `json:"type"` WishlistAvg float64 `json:"wishlist_avg"` WishlistCount int `json:"wishlist_count"` NameMarked string `json:"-"` Score float64 `json:"-"` }
func GetUpcomingGames ¶
func SearchAppsAdvanced ¶
func SearchAppsRandom ¶
func (App) GetCommunityLink ¶
func (App) GetFollowers ¶
func (App) GetGroupID ¶
func (App) GetHeaderImage ¶
func (App) GetIconAbsolute ¶
func (App) GetMarkedName ¶
func (App) GetPathAbsolute ¶
func (App) GetPlayLink ¶
func (App) GetPlayersPeakWeek ¶
func (App) GetPrices ¶
func (app App) GetPrices() (prices helpers.ProductPrices)
func (App) GetReleaseDateNice ¶
func (App) GetReleaseDateNiceRounded ¶
func (App) GetReviewScore ¶
func (App) GetScreenshots ¶
func (App) GetStoreLink ¶
type Article ¶
type Article struct { ID int64 `json:"id"` Title string `json:"title"` Author string `json:"author"` Body string `json:"body"` Feed string `json:"feed"` FeedName string `json:"feed_name"` AppID int `json:"app_id"` AppName string `json:"app_name"` AppIcon string `json:"app_icon"` Time int64 `json:"time"` ArticleIcon string `json:"icon"` TitleMarked string `json:"-"` Score float64 `json:"-"` }
func SearchArticles ¶
func (Article) GetAppIcon ¶
func (Article) GetAppName ¶
func (Article) GetAppPath ¶
func (Article) GetArticleIcon ¶
func (Article) GetBodyTruncated ¶
func (Article) GetFeedName ¶
func (Article) OutputForJSON ¶
func (article Article) OutputForJSON() []interface{}
type Bundle ¶
type Bundle struct { Apps int `json:"apps"` CreatedAt int64 `json:"created_at"` Discount int `json:"discount"` DiscountHighest int `json:"discount_highest"` DiscountLowest int `json:"discount_lowest"` DiscountSale int `json:"discount_sale"` Giftable bool `json:"giftable"` Icon string `json:"icon"` ID int `json:"id"` Image string `json:"image"` Name string `json:"name"` OnSale bool `json:"on_sale"` Packages int `json:"packages"` Prices map[steamapi.ProductCC]int `json:"prices"` PricesSale map[steamapi.ProductCC]int `json:"prices_sale"` Type string `json:"type"` UpdatedAt int64 `json:"updated_at"` NameMarked string `json:"-"` Score float64 `json:"-"` }
func SearchBundles ¶
func (Bundle) GetCreated ¶
func (Bundle) GetDiscount ¶
func (Bundle) GetDiscountHighest ¶
func (Bundle) GetDiscountSale ¶
func (Bundle) GetPackages ¶
func (Bundle) GetPricesFormatted ¶
func (Bundle) GetPricesSaleFormatted ¶
func (Bundle) GetStoreLink ¶
func (Bundle) GetUpdated ¶
func (Bundle) IsGiftable ¶
func (Bundle) OutputForJSON ¶
func (bundle Bundle) OutputForJSON() (output []interface{})
type Group ¶
type Group struct { ID string `json:"id"` Name string `json:"name"` URL string `json:"url"` Abbreviation string `json:"abbreviation"` Headline string `json:"headline"` Icon string `json:"icon"` Members int `json:"members"` Trend float64 `json:"trend"` Error bool `json:"error"` Primaries int `json:"primaries"` NameMarked string `json:"-"` Score float64 `json:"-"` }
func SearchGroups ¶
func (Group) GetGameLink ¶
func (Group) GetGroupLink ¶
func (Group) GetHeadline ¶
func (Group) GetNameMarked ¶
func (Group) GetPathAbsolute ¶
type Player ¶
type Player struct { ID int64 `json:"id"` PersonaName string `json:"name"` PersonaNameRecent []string `json:"name_recent"` VanityURL string `json:"url"` Avatar string `json:"avatar"` Continent string `json:"continent"` CountryCode string `json:"country_code"` StateCode string `json:"state_code"` LastBan int64 `json:"last_ban"` GameBans int `json:"game_bans"` VACBans int `json:"vac_bans"` Level int `json:"level"` PlayTime int `json:"play_time"` Badges int `json:"badges"` BadgesFoil int `json:"badges_foil"` Games int `json:"games"` Achievements int `json:"achievements"` Achievements100 int `json:"achievements_100"` AwardsGivenCount int `json:"awards_given_count"` AwardsGivenPoints int `json:"awards_given_points"` AwardsReceivedCount int `json:"awards_received_count"` AwardsReceivedPoints int `json:"awards_received_points"` Ranks map[helpers.RankMetric]int `json:"ranks"` PersonaNameMarked string `json:"-"` Score float64 `json:"-"` }
func SearchPlayers ¶
func (Player) GetAchievements ¶
func (Player) GetAvatar2 ¶
func (Player) GetAvatarAbsolute ¶
func (Player) GetBadgesFoil ¶
func (Player) GetCommunityLink ¶
func (Player) GetCountry ¶
func (Player) GetGameBans ¶
func (Player) GetGamesCount ¶
func (Player) GetLastBan ¶
func (Player) GetNameMarked ¶
func (Player) GetPathAbsolute ¶
func (Player) GetPlaytime ¶
func (Player) GetVACBans ¶
Click to show internal directories.
Click to hide internal directories.