kinguin

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootCommand

func RootCommand() *cobra.Command

RootCommand command.

Types

type Item

type Item struct {
	CategoryID            int        `json:"category_id"`
	Name                  string     `json:"name"`
	MinPrice              float64    `json:"min_price"`
	MetacriticScore       int        `json:"metacritic_score"`
	Platform              int        `json:"platform"`
	Genres                []int      `json:"genres"`
	Region                int        `json:"region"`
	RegionImageURL        string     `json:"region_image_url"`
	ContentType           []int      `json:"content_type"`
	OfficialPrice         float64    `json:"official_price"`
	OfficialPricePlatform string     `json:"official_price_platform"`
	MediaImagesUrls       []string   `json:"media_images_urls"`
	MediaVideosUrls       []string   `json:"media_videos_urls"`
	CategoryImageURL      string     `json:"category_image_url"`
	CategoryURL           string     `json:"category_url"`
	Properties            []Property `json:"properties"`
}

Item is one product on Kinguin.

func (*Item) PlatformName

func (item *Item) PlatformName() string

PlatformName returns with the string representation of the platform. In the response, it's an integer.

type Property

type Property struct {
	ImageURL string `json:"image_url"`
	Name     string `json:"name"`
}

Property is the structure of a property for an Item.

type SearchResponse

type SearchResponse struct {
	TotalItemsCount int    `json:"total_items_count"`
	Items           []Item `json:"items"`
}

SearchResponse is the response structure from a search request.

Jump to

Keyboard shortcuts

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