Documentation ¶
Index ¶
- Variables
- func AugmentPost(postData PostData)
- func CloseSteam()
- func CreatePost(group ImageGrouping)
- func GetSteamId(game string) (steamId string)
- func GroupByProperty[T any, K comparable](items []T, getProperty func(T) K) map[K][]T
- func InitSteam(state []string)
- func InitTinify(tinifyApiKey string)
- func Map[T any, O any](items []T, getProperty func(T) O) []O
- func ParseTime(input string) (time.Time, error)
- func ReadState() (state []string)
- func Tinify(source string) (result []byte)
- func WriteState(state []string)
- type App
- type AppList
- type AppListResponse
- type Data
- type GameApiDetails
- type GameStoreDetails
- type Genre
- type Image
- type ImageGrouping
- type ListedApp
- type PostData
- type PriceOverview
- type Screenshot
Constants ¶
This section is empty.
Variables ¶
View Source
var PaleoplayVersion = 2
Functions ¶
func AugmentPost ¶ added in v0.1.0
func AugmentPost(postData PostData)
func CloseSteam ¶
func CloseSteam()
func CreatePost ¶
func CreatePost(group ImageGrouping)
func GetSteamId ¶ added in v0.1.0
func GroupByProperty ¶
func GroupByProperty[T any, K comparable](items []T, getProperty func(T) K) map[K][]T
func InitTinify ¶
func InitTinify(tinifyApiKey string)
func WriteState ¶
func WriteState(state []string)
Types ¶
type AppListResponse ¶ added in v0.1.0
type AppListResponse struct {
AppList AppList `json:"applist"`
}
type Data ¶
type Data struct { Genres []Genre `json:"genres"` Name string `json:"name"` Developers []string `json:"developers"` Publishers []string `json:"publishers"` PriceOverview PriceOverview `json:"price_overview"` }
type GameApiDetails ¶ added in v0.1.0
type GameApiDetails struct { Name string Genres []string Price int Developers []string `json:"developers"` Publishers []string `json:"publishers"` }
func GetGameApiDetails ¶ added in v0.1.0
func GetGameApiDetails(appId string) GameApiDetails
type GameStoreDetails ¶ added in v0.1.0
func GetGameStoreDetails ¶ added in v0.1.0
func GetGameStoreDetails(appId string) (details GameStoreDetails, err error)
type ImageGrouping ¶ added in v0.1.0
func GroupScreenshots ¶ added in v0.1.0
func GroupScreenshots(screenshots []Screenshot) (imageGroupings []ImageGrouping)
type PostData ¶ added in v0.1.0
type PostData struct { Date string `yaml:"dates"` Images []string `yaml:"images"` Game string `yaml:"games"` Price float64 `yaml:"price"` Genres []string `yaml:"genres"` Developers []string `yaml:"developers"` Publishers []string `yaml:"publishers"` Franchise string `yaml:"franchises"` Tags []string `yaml:"tags"` SteamId string `yaml:"steamId"` Paleoplay int `yaml:"paleoplay"` }
type PriceOverview ¶ added in v0.1.0
type PriceOverview struct {
Initial int `json:"initial"`
}
type Screenshot ¶
func PullPublicScreenshots ¶
func PullPublicScreenshots(user string) (screenshots []Screenshot)
func PullScreenshot ¶
func PullScreenshot(url string) (screenshot Screenshot)
func (*Screenshot) FileName ¶
func (s *Screenshot) FileName(number int) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.