api

package
v0.0.0-...-4fcb001 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgoliaItem

type AlgoliaItem struct {
	Nid            string   `json:"nsuid"` // Nsuid
	Title          string   `json:"title"`
	Url            string   `json:"url"`
	Desc           string   `json:"description"`
	Slug           string   `json:"slug"`
	Developers     []string `json:"developers"`
	Genres         []string `json:"genres"`
	Publishers     []string `json:"publishers"`
	Image          string   `json:"horizontalHeaderImage"`
	GeneralFilters []string `json:"generalFilters"` // 占位
	ReleaseDate    string   `json:"releaseDateDisplay"`
}

func GetAlgoliaItems

func GetAlgoliaItems(country int, filter string, order int) []AlgoliaItem

func GetAllDealItems

func GetAllDealItems(country int, order int) []AlgoliaItem

func GetAllGames

func GetAllGames(country interface{}) []AlgoliaItem

func GetAllItems

func GetAllItems(country int, order int) []AlgoliaItem
func Search(country int, filter string, page, per_page, order int) ([]AlgoliaItem, bool)

type MetacriticItem

type MetacriticItem struct {
	ID    int     `json:"id"`
	Url   string  `json:"url"`
	Score float64 `json:"score"`
	Title string  `json:"title"`
}

func GetMetacriticItems

func GetMetacriticItems() []*MetacriticItem

Jump to

Keyboard shortcuts

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