models

package
v0.0.0-...-d7b114a Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogTemplate

type CatalogTemplate struct {
	Header     Header
	Title      string
	Content    []Game
	Pagination []string
	Footer     []string
	Status     Status
}

type Game

type Game struct {
	Type                string `json:"type"`
	Name                string `json:"name"`
	SteamAppid          int    `json:"steam_appid"`
	RequiredAge         int    `json:"required_age"`
	IsFree              bool   `json:"is_free"`
	Dlc                 []int  `json:"dlc"`
	DetailedDescription string `json:"detailed_description"`
	AboutTheGame        string `json:"about_the_game"`
	ShortDescription    string `json:"short_description"`
	SupportedLanguages  string `json:"supported_languages"`
	Reviews             string `json:"reviews"`
	HeaderImage         string `json:"header_image"`
	Website             string `json:"website"`
	View                int    `json:"view"`
	PcRequirements      struct {
		Minimum     string `json:"minimum"`
		Recommended string `json:"recommended"`
	} `json:"pc_requirements"`
	MacRequirements struct {
		Minimum     string `json:"minimum"`
		Recommended string `json:"recommended"`
	} `json:"mac_requirements"`
	LinuxRequirements []interface{} `json:"linux_requirements"`
	Developers        []string      `json:"developers"`
	Publishers        []string      `json:"publishers"`
	Demos             []struct {
		Appid       int    `json:"appid"`
		Description string `json:"description"`
	} `json:"demos"`
	PriceOverview struct {
		Currency         string `json:"currency"`
		Initial          int    `json:"initial"`
		Final            int    `json:"final"`
		DiscountPercent  int    `json:"discount_percent"`
		InitialFormatted string `json:"initial_formatted"`
		FinalFormatted   string `json:"final_formatted"`
	} `json:"price_overview"`
	Packages      []int `json:"packages"`
	PackageGroups []struct {
		Name                    string `json:"name"`
		Title                   string `json:"title"`
		Description             string `json:"description"`
		SelectionText           string `json:"selection_text"`
		SaveText                string `json:"save_text"`
		DisplayType             int    `json:"display_type"`
		IsRecurringSubscription string `json:"is_recurring_subscription"`
		Subs                    []struct {
			Packageid                int    `json:"packageid"`
			PercentSavingsText       string `json:"percent_savings_text"`
			PercentSavings           int    `json:"percent_savings"`
			OptionText               string `json:"option_text"`
			OptionDescription        string `json:"option_description"`
			CanGetFreeLicense        string `json:"can_get_free_license"`
			IsFreeLicense            bool   `json:"is_free_license"`
			PriceInCentsWithDiscount int    `json:"price_in_cents_with_discount"`
		} `json:"subs"`
	} `json:"package_groups"`
	Platforms struct {
		Windows bool `json:"windows"`
		Mac     bool `json:"mac"`
		Linux   bool `json:"linux"`
	} `json:"platforms"`
	Metacritic struct {
		Score int    `json:"score"`
		URL   string `json:"url"`
	} `json:"metacritic"`
	Categories []struct {
		ID          int    `json:"id"`
		Description string `json:"description"`
	} `json:"categories"`
	Genres []struct {
		ID          string `json:"id"`
		Description string `json:"description"`
	} `json:"genres"`
	Screenshots []struct {
		ID            int    `json:"id"`
		PathThumbnail string `json:"path_thumbnail"`
		PathFull      string `json:"path_full"`
	} `json:"screenshots"`
	Movies []struct {
		ID        int    `json:"id"`
		Name      string `json:"name"`
		Thumbnail string `json:"thumbnail"`
		Webm      struct {
			Num480 string `json:"480"`
			Max    string `json:"max"`
		} `json:"webm"`
		Highlight bool `json:"highlight"`
	} `json:"movies"`
	Recommendations struct {
		Total int `json:"total"`
	} `json:"recommendations"`
	Achievements struct {
		Total       int `json:"total"`
		Highlighted []struct {
			Name string `json:"name"`
			Path string `json:"path"`
		} `json:"highlighted"`
	} `json:"achievements"`
	ReleaseDate struct {
		ComingSoon bool   `json:"coming_soon"`
		Date       string `json:"date"`
	} `json:"release_date"`
	SupportInfo struct {
		URL   string `json:"url"`
		Email string `json:"email"`
	} `json:"support_info"`
	Background         string `json:"background"`
	ContentDescriptors struct {
		Ids   []interface{} `json:"ids"`
		Notes interface{}   `json:"notes"`
	} `json:"content_descriptors"`
}
type Header map[string]HeaderList

type HeaderList

type HeaderList struct {
	Name string
	URL  string
	Rank int
}

type Status

type Status struct {
	Online bool
}

type User

type User struct {
	Id                       bson.ObjectId `json:"id" bson:"_id"`
	Steamid                  string        `json:"steamid"`
	Communityvisibilitystate int           `json:"communityvisibilitystate"`
	Profilestate             int           `json:"profilestate"`
	Personaname              string        `json:"personaname"`
	Lastlogoff               int           `json:"lastlogoff"`
	Profileurl               string        `json:"profileurl"`
	Avatar                   string        `json:"avatar"`
	Avatarmedium             string        `json:"avatarmedium"`
	Avatarfull               string        `json:"avatarfull"`
	Personastate             int           `json:"personastate"`
	Realname                 string        `json:"realname"`
	Primaryclanid            string        `json:"primaryclanid"`
	Timecreated              int           `json:"timecreated"`
	Personastateflags        int           `json:"personastateflags"`
	Loccountrycode           string        `json:"loccountrycode"`
	Locstatecode             string        `json:"locstatecode"`
	Loccityid                int           `json:"loccityid"`
	Email                    string        `json:"email" bson:"email,omitempty"`
	Password                 string        `json:"password" bson:"password,omitempty"`
	LastVisitedGames         []int         `json:"lastvisitedgames"`
}

Jump to

Keyboard shortcuts

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