Documentation ¶
Index ¶
- Constants
- type Block
- type Developer
- type DeveloperArray
- type Discount
- type Document
- type DocumentArray
- type DocumentSignature
- type DocumentSignatureArray
- type DocumentSigned
- type Feature
- type FeatureArray
- type Game
- type GameDiscount
- type GameEx
- type GameLicense
- type GameMedia
- type GameMediaArray
- type GameRevision
- type GameRevisionArray
- type GameRevisionDeveloper
- type GameRevisionDeveloperArray
- type GameRevisionEx
- type GameRevisionExArray
- type GameRevisionFeature
- type GameRevisionFeatureArray
- type GameRevisionGenre
- type GameRevisionGenreArray
- type GameRevisionL10n
- type GameRevisionL10nArray
- type GameRevisionPrice
- type GameRevisionPublisher
- type GameRevisionPublisherArray
- type GameRevisionTag
- type GameRevisionTagArray
- type GameStorePublish
- type Genre
- type GenreArray
- type Language
- type LanguageArray
- type Localization
- type LocalizationLanguage
- type LocalizationLanguageArray
- type Media
- type MediaArray
- type NygmaIntegration
- type Order
- type PaymentMethods
- type Post
- type PostArray
- type PostEx
- type PostL10n
- type PostMedia
- type Price
- type PriceTable
- type PriceTableRange
- type Publisher
- type PublisherArray
- type Rating
- type RecommendedPrice
- type Region
- type RegionCurrency
- type RequirementsSet
- type Review
- type Settings
- type SocialLink
- type Storefront
- type SystemRequirements
- type Tag
- type TagArray
- type User
- type UserID
- type UserInfoDownload
Constants ¶
View Source
const ( RetryDelay = 2 * time.Hour NewRequestDelay = 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { // Type is how block must be rendered Type storefront_block.Type // Title is user facing title for page block Title storefront_block.Title // Filter is query to catalog for 'view more' button Filter string // GameIDs is list of games identifiers GameIDs []string }
Block is storefront template page block
type DeveloperArray ¶
type DeveloperArray struct {
// contains filtered or unexported fields
}
func NewDeveloperArray ¶
func NewDeveloperArray(items []Developer) *DeveloperArray
func (*DeveloperArray) IDs ¶
func (a *DeveloperArray) IDs() []uint
func (*DeveloperArray) Size ¶
func (a *DeveloperArray) Size() int
type DocumentArray ¶
type DocumentArray []Document
func NewDocumentArray ¶
func NewDocumentArray(items []Document) DocumentArray
func (DocumentArray) IDs ¶
func (a DocumentArray) IDs() []uint
type DocumentSignature ¶
type DocumentSignatureArray ¶
type DocumentSignatureArray []DocumentSignature
func NewDocumentSignatureArray ¶
func NewDocumentSignatureArray(items []DocumentSignature) *DocumentSignatureArray
func (*DocumentSignatureArray) DocumentIDs ¶
func (a *DocumentSignatureArray) DocumentIDs() []uint
func (*DocumentSignatureArray) IDs ¶
func (a *DocumentSignatureArray) IDs() []uint
type DocumentSigned ¶
type FeatureArray ¶
type FeatureArray struct {
// contains filtered or unexported fields
}
func NewFeatureArray ¶
func NewFeatureArray(items []Feature) *FeatureArray
func (*FeatureArray) IDs ¶
func (a *FeatureArray) IDs() []uint
func (*FeatureArray) Size ¶
func (a *FeatureArray) Size() int
type GameDiscount ¶
type GameEx ¶
type GameEx struct { Game Revision *GameRevisionEx }
type GameLicense ¶
type GameMediaArray ¶
type GameMediaArray struct {
// contains filtered or unexported fields
}
func NewGameMediaArray ¶
func NewGameMediaArray(items []GameMedia) *GameMediaArray
func (*GameMediaArray) IDs ¶
func (a *GameMediaArray) IDs() []uint
func (*GameMediaArray) Size ¶
func (a *GameMediaArray) Size() int
type GameRevision ¶
type GameRevision struct { ID uint GameID string Summary string Description string License string Publisher *string Developer *string PlayTime uint PublishedAt *time.Time ReleaseDate time.Time ReleaseDateCountDown bool SystemRequirements []SystemRequirements SocialLinks []SocialLink L10n []GameRevisionL10n Status game_revision.Status Platforms game.PlatformArray }
type GameRevisionArray ¶
type GameRevisionArray []GameRevision
func NewGameRevisionArray ¶
func NewGameRevisionArray(items []GameRevision) GameRevisionArray
func (GameRevisionArray) GameIDs ¶
func (a GameRevisionArray) GameIDs() []string
func (GameRevisionArray) IDs ¶
func (a GameRevisionArray) IDs() []uint
type GameRevisionDeveloper ¶
type GameRevisionDeveloperArray ¶
type GameRevisionDeveloperArray struct {
// contains filtered or unexported fields
}
func NewGameRevisionDeveloperArray ¶
func NewGameRevisionDeveloperArray(items []GameRevisionDeveloper) *GameRevisionDeveloperArray
func (*GameRevisionDeveloperArray) DeveloperIDs ¶
func (a *GameRevisionDeveloperArray) DeveloperIDs() []uint
func (*GameRevisionDeveloperArray) IDs ¶
func (a *GameRevisionDeveloperArray) IDs() []uint
func (*GameRevisionDeveloperArray) Size ¶
func (a *GameRevisionDeveloperArray) Size() int
type GameRevisionEx ¶
type GameRevisionEx struct { GameRevision Tags []Tag Features []Feature Genres []Genre Localization []Localization Rating []Rating Review []Review Prices []GameRevisionPrice }
type GameRevisionExArray ¶
type GameRevisionExArray []GameRevisionEx
func NewGameRevisionExArray ¶
func NewGameRevisionExArray(items []GameRevisionEx) GameRevisionExArray
func (GameRevisionExArray) GameIDs ¶
func (a GameRevisionExArray) GameIDs() []string
func (GameRevisionExArray) IDs ¶
func (a GameRevisionExArray) IDs() []uint
type GameRevisionFeature ¶
type GameRevisionFeatureArray ¶
type GameRevisionFeatureArray struct {
// contains filtered or unexported fields
}
func NewGameRevisionFeatureArray ¶
func NewGameRevisionFeatureArray(items []GameRevisionFeature) *GameRevisionFeatureArray
func (*GameRevisionFeatureArray) FeatureIDs ¶
func (a *GameRevisionFeatureArray) FeatureIDs() []uint
func (*GameRevisionFeatureArray) IDs ¶
func (a *GameRevisionFeatureArray) IDs() []uint
func (*GameRevisionFeatureArray) Size ¶
func (a *GameRevisionFeatureArray) Size() int
type GameRevisionGenre ¶
type GameRevisionGenreArray ¶
type GameRevisionGenreArray struct {
// contains filtered or unexported fields
}
func NewGameRevisionGenreArray ¶
func NewGameRevisionGenreArray(items []GameRevisionGenre) *GameRevisionGenreArray
func (*GameRevisionGenreArray) GenreIDs ¶
func (a *GameRevisionGenreArray) GenreIDs() []uint
func (*GameRevisionGenreArray) IDs ¶
func (a *GameRevisionGenreArray) IDs() []uint
func (*GameRevisionGenreArray) Size ¶
func (a *GameRevisionGenreArray) Size() int
type GameRevisionL10n ¶
type GameRevisionL10n struct { ID uint LanguageID uint GameRevisionID uint Summary *string Description *string CoverWideSliderMediaID *uint CoverVerticalMediaID *uint CoverHorizontalMediaID *uint CoverHorizontalSmallMediaID *uint CoverLargeSingleMediaID *uint CoverCatalogMediaID *uint CoverIconMediaID *uint ScreenshotMediaIDs []uint DescriptionMediaIDs []uint Trailers []string }
type GameRevisionL10nArray ¶
type GameRevisionL10nArray []GameRevisionL10n
func (GameRevisionL10nArray) IDs ¶
func (a GameRevisionL10nArray) IDs() []uint
type GameRevisionPrice ¶
type GameRevisionPublisher ¶
type GameRevisionPublisherArray ¶
type GameRevisionPublisherArray struct {
// contains filtered or unexported fields
}
func NewGameRevisionPublisherArray ¶
func NewGameRevisionPublisherArray(items []GameRevisionPublisher) *GameRevisionPublisherArray
func (*GameRevisionPublisherArray) IDs ¶
func (a *GameRevisionPublisherArray) IDs() []uint
func (*GameRevisionPublisherArray) PublisherIDs ¶
func (a *GameRevisionPublisherArray) PublisherIDs() []uint
func (*GameRevisionPublisherArray) Size ¶
func (a *GameRevisionPublisherArray) Size() int
type GameRevisionTag ¶
type GameRevisionTagArray ¶
type GameRevisionTagArray struct {
// contains filtered or unexported fields
}
func NewGameRevisionTagArray ¶
func NewGameRevisionTagArray(items []GameRevisionTag) *GameRevisionTagArray
func (*GameRevisionTagArray) IDs ¶
func (a *GameRevisionTagArray) IDs() []uint
func (*GameRevisionTagArray) Size ¶
func (a *GameRevisionTagArray) Size() int
func (*GameRevisionTagArray) TagIDs ¶
func (a *GameRevisionTagArray) TagIDs() []uint
type GameStorePublish ¶
type GenreArray ¶
type GenreArray struct {
// contains filtered or unexported fields
}
func NewGenreArray ¶
func NewGenreArray(items []Genre) *GenreArray
func (*GenreArray) IDs ¶
func (a *GenreArray) IDs() []uint
func (*GenreArray) Size ¶
func (a *GenreArray) Size() int
type LanguageArray ¶
type LanguageArray struct {
// contains filtered or unexported fields
}
func NewLanguageArray ¶
func NewLanguageArray(items []Language) *LanguageArray
func (*LanguageArray) IDs ¶
func (a *LanguageArray) IDs() []uint
func (*LanguageArray) Size ¶
func (a *LanguageArray) Size() int
type Localization ¶
type LocalizationLanguage ¶
type LocalizationLanguageArray ¶
type LocalizationLanguageArray struct {
// contains filtered or unexported fields
}
func NewLocalizationLanguageArray ¶
func NewLocalizationLanguageArray(items []LocalizationLanguage) *LocalizationLanguageArray
func (*LocalizationLanguageArray) IDs ¶
func (a *LocalizationLanguageArray) IDs() []uint
func (*LocalizationLanguageArray) Size ¶
func (a *LocalizationLanguageArray) Size() int
type MediaArray ¶
type MediaArray struct {
// contains filtered or unexported fields
}
func NewMediaArray ¶
func NewMediaArray(items []Media) *MediaArray
func (*MediaArray) IDs ¶
func (a *MediaArray) IDs() []uint
func (*MediaArray) Size ¶
func (a *MediaArray) Size() int
type NygmaIntegration ¶
type PaymentMethods ¶
type PaymentMethods struct {
Nygma NygmaIntegration
}
type Price ¶
type Price struct { Currency RegionCurrency Amount float64 }
type PriceTable ¶
type PriceTable struct { RegionID uint Ranges []PriceTableRange }
type PriceTableRange ¶
type PublisherArray ¶
type PublisherArray struct {
// contains filtered or unexported fields
}
func NewPublisherArray ¶
func NewPublisherArray(items []Publisher) *PublisherArray
func (*PublisherArray) IDs ¶
func (a *PublisherArray) IDs() []uint
func (*PublisherArray) Size ¶
func (a *PublisherArray) Size() int
type Rating ¶
type Rating struct { ID uint GameRevisionID uint Agency game_rating.Agency Rating game_rating.Rating Descriptors []game_rating.Descriptor DisplayOnlineNotice bool DisplayOnlineMusicNotice bool ShowAgeRestrict bool AgeRestrictYears *uint }
type RecommendedPrice ¶
type RegionCurrency ¶
type RegionCurrency struct { ID uint RegionID uint RegionCode string CurrencyCode string Fraction float64 UpdatedAt time.Time CreatedAt time.Time VatNumeric float64 VatString string // The currency is available to users in the store. Games without // a price in this currency should not be published. IsActiveForUsers bool // The currency is only available in CRM for publishers. The game // can be published without a price in this currency. IsActiveForDevelopers bool // If the relation between the region and the currency is standard, // such as USA and USD, you do not need to highlight it in the interface. IsStandardRelation bool // Default currency for system. USD by default. IsDefault bool }
type RequirementsSet ¶
type Settings ¶
type Settings struct { ID uint StoreRootURL string PaymentMethods PaymentMethods }
type SocialLink ¶
type SocialLink struct { Type game_social_link.Type URL string }
type Storefront ¶
type Storefront struct { // ID is unique identifier for storefront page template ID uint // Name is user-friendly template name Name string // IsActive is status flag IsActive bool // Version is latest template version number Version uint // Blocks are content of page Blocks []Block // CreatedAt is template creation date CreatedAt time.Time // UpdatedAt is last update date UpdatedAt time.Time }
type SystemRequirements ¶
type SystemRequirements struct { Platform game.Platform Minimal RequirementsSet Recommended RequirementsSet }
type TagArray ¶
type TagArray struct {
// contains filtered or unexported fields
}
func NewTagArray ¶
type UserInfoDownload ¶
type UserInfoDownload struct { UserID UserID Status user_info_download.Status TryCount int LastTryAt time.Time NextTryAt time.Time CreatedAt time.Time }
func NewUserInfoDownload ¶
func NewUserInfoDownload(userID UserID, inProgress bool) *UserInfoDownload
func (*UserInfoDownload) Expiration ¶
func (s *UserInfoDownload) Expiration() time.Time
returns result expiration time
func (*UserInfoDownload) IsNewRequestAllowed ¶
func (s *UserInfoDownload) IsNewRequestAllowed(now time.Time) bool
func (*UserInfoDownload) MarkReady ¶
func (s *UserInfoDownload) MarkReady() error
func (*UserInfoDownload) NewTry ¶
func (s *UserInfoDownload) NewTry() error
Source Files ¶
- developer.go
- discount.go
- document.go
- document_signature.go
- document_signed.go
- feature.go
- game.go
- game_discount.go
- game_ex.go
- game_license.go
- game_media.go
- game_revision.go
- game_revision_developer.go
- game_revision_ex.go
- game_revision_feature.go
- game_revision_genre.go
- game_revision_l10n.go
- game_revision_price.go
- game_revision_publisher.go
- game_revision_tag.go
- game_store_publish.go
- genre.go
- language.go
- localization.go
- localization_language.go
- media.go
- order.go
- post.go
- post_ex.go
- post_l10n.go
- post_media.go
- price.go
- pricing_table.go
- publisher.go
- rating.go
- region.go
- region_currency.go
- review.go
- settings.go
- social_links.go
- storefront.go
- system_requirements.go
- tag.go
- user.go
- user_info_download.go
Click to show internal directories.
Click to hide internal directories.