titledb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TitleDBEntry

type TitleDBEntry struct {
	StringID       string   `json:"id"`
	Name           string   `json:"name"`
	ReleaseDate    int      `json:"releaseDate"`
	NumPlayers     int      `json:"numberOfPlayers"`
	IconURL        string   `json:"iconUrl"`
	BannerURL      string   `json:"bannerUrl"`
	ScreenshotURLs []string `json:"screenshots"`
}

This is the stored set of data from the titledb json files We dont parse and store everything

type TitlesDB

type TitlesDB struct {
	// contains filtered or unexported fields
}

func CreateTitlesDB

func CreateTitlesDB(settings *settings.Settings) *TitlesDB

func (*TitlesDB) DumpToJSON

func (db *TitlesDB) DumpToJSON(writer io.Writer) error

func (*TitlesDB) QueryGameFromTitleID

func (db *TitlesDB) QueryGameFromTitleID(titleID uint64) (TitleDBEntry, bool)

func (*TitlesDB) UpdateTitlesDB

func (db *TitlesDB) UpdateTitlesDB()

UpdateTitlesDB will sync latest titlesdb, then update the internal memory state

Jump to

Keyboard shortcuts

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