models

package
v0.0.0-...-f651122 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsGameGeneral

func ContainsGameGeneral(listForCheck []GameGeneral, gameForCheck GameGeneral) bool

func GetIndexByGlobalId

func GetIndexByGlobalId(games []GameGeneral, globalId string) (outIndex int)

Types

type App

type App struct {
	AppID int    `json:"appid"`
	Name  string `json:"name"`
}

type Applist

type Applist struct {
	Applist Apps `json:"applist"`
}

type Apps

type Apps struct {
	Apps []App `json:"apps"`
}

type GameGeneral

type GameGeneral struct {
	GlobalID         string      `json:"GlobalID"` // main filed (!) ST125 - steam, 125`th in steam games list, GG - gog, GB - gabestore
	Name             string      `json:"Name"`     // main filed (!)
	HeaderImageURL   string      `json:"HeaderImageURL"`
	IsFree           bool        `json:"IsFree"`
	Discount         int64       `json:"Discount"` // main filed (!)
	Price            int64       `json:"Price"`    // main filed (!)
	Link             string      `json:"Link"`
	Source           string      `json:"Source"` // main filed (!)
	Metacritic       int64       `json:"Metacritic"`
	SteamID          int64       `json:"SteamID"` // main filed (!)
	IsSteamBundle    bool        `json:"IsSteamBundle"`
	SteamBundle      SteamBundle `json:"SteamBundle"`
	AlreadyPublished bool        `json:"AlreadyPublished"` // main filed (!)
}

func MergeGameLists

func MergeGameLists(oldList []GameGeneral, newList []GameGeneral) (mergedList []GameGeneral)

type SteamBundle

type SteamBundle []int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL