entity

package
v0.0.0-...-65b1bfe Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PENDING   status = "PENDING"
	PROCESSED status = "PROCESSED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	SteamID              string `json:"steam_id" db:"steam_id"`
	NumGamesOwned        int    `json:"num_games_owned" db:"num_games_owned"`
	NumReviews           int    `json:"num_reviews" db:"num_reviews"`
	PlaytimeForever      int    `json:"playtime_forever" db:"playtime_forever"`
	PlaytimeLastTwoWeeks int    `json:"playtime_last_two_weeks" db:"playtime_last_two_weeks"`
	PlaytimeAtReview     int    `json:"playtime_at_review" db:"playtime_at_review"`
	LastPlayed           int    `json:"last_played" db:"last_played"`
}

type FullGame

type FullGame struct {
	FullGameAppID int    `json:"appid" db:"fullgame_app_id"`
	FullGameName  string `json:"fullgame_name" db:"fullgame_name"`
}

type GameDetails

type GameDetails struct {
	ID               int    `json:"-" db:"id"`
	AppID            int    `json:"app_id" db:"app_id"`
	Name             string `json:"name" db:"name"`
	Description      string `json:"description" db:"description"`
	FullGame         `json:"fullgame"`
	Type             string        `json:"type" db:"type"`
	Publishers       LanguageArray `json:"publishers" db:"publishers"`
	Developers       LanguageArray `json:"developers" db:"developers"`
	IsFree           bool          `json:"is_free" db:"is_free"`
	SupportLanguages `json:"support_languages"`
	Platforms        `json:"platforms"`
	Genre            []Genre `json:"genre"`
	ReleaseDate      `json:"release_date"`
	Price            `json:"price"`
	GenreID          string `json:"-" db:"genre_id"`
	TypeGenre        string `json:"-" db:"type_genre"`
}

type Genre

type Genre struct {
	GenreID   string `json:"genre_id" db:"genre_id"`
	TypeGenre string `json:"type_genre" db:"type_genre"`
}

type Item

type Item struct {
	Appid     int64         `json:"appid"`
	Name      string        `json:"name"`
	Status    status        `json:"status"`
	IsValid   bool          `json:"valid"`
	CreatedAt *time.Time    `json:"created_at"`
	UpdatedAt *sql.NullTime `json:"updated_at,omitempty"`
}

type LanguageArray

type LanguageArray []string

func (*LanguageArray) Scan

func (l *LanguageArray) Scan(src interface{}) error

type Platforms

type Platforms struct {
	Windows bool `json:"windows" db:"windows"`
	Mac     bool `json:"mac" db:"mac"`
	Linux   bool `json:"linux" db:"linux"`
}

type Price

type Price struct {
	Currency              string `json:"currency" db:"currency"`
	InitialPrice          int64  `json:"initial_price" db:"initial_price"`
	FinalPrice            int64  `json:"final_price" db:"final_price"`
	DiscountPercent       int    `json:"discount_percent" db:"discount_percent"`
	FormattedInitialPrice string `json:"formatted_initial_price" db:"formatted_initial_price"`
	FormattedFinalPrice   string `json:"formatted_final_price" db:"formatted_final_price"`
}

type ReleaseDate

type ReleaseDate struct {
	Date       string `json:"release_date" db:"release_date"`
	ComingSoon bool   `json:"coming_soon" db:"coming_soon"`
}

type ReviewDB

type ReviewDB struct {
	ID                       int    `json:"-" db:"id"`
	AppID                    int    `json:"app_id" db:"app_id"`
	ReviewType               string `json:"review_type" db:"review_type"`
	RecommendationID         int    `json:"recommendation_id" db:"recommendation_id"`
	Author                   `json:"author"`
	Language                 string `json:"language" db:"language"`
	ReviewText               string `json:"review_text" db:"review_text"`
	TimestampCreated         int    `json:"timestamp_created" db:"timestamp_created"`
	TimestampUpdated         int    `json:"timestamp_updated" db:"timestamp_updated"`
	VotedUp                  bool   `json:"voted_up" db:"voted_up"`
	VotesUp                  int    `json:"votes_up" db:"votes_up"`
	VotesFunny               int    `json:"votes_funny" db:"votes_funny"`
	CommentCount             int    `json:"comment_count" db:"comment_count"`
	SteamPurchase            bool   `json:"steam_purchase" db:"steam_purchase"`
	ReceivedForFree          bool   `json:"received_for_free" db:"received_for_free"`
	WrittenDuringEarlyAccess bool   `json:"written_during_early_access" db:"written_during_early_access"`
}

type SupportLanguages

type SupportLanguages struct {
	InterfaceLanguages LanguageArray `json:"interface_languages" db:"interface_languages"`
	FullAudioLanguages LanguageArray `json:"fullaudio_languages" db:"fullaudio_languages"`
	SubtitlesLanguages LanguageArray `json:"subtitles_languages" db:"subtitles_languages"`
}

Jump to

Keyboard shortcuts

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