apps

package
v0.0.0-...-f06996e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const (
	MetadataDBLocation = "data"
	MetadataDBName     = "metadata.db" // Name of the database with metadata about apps
)

Variables

This section is empty.

Functions

func AllUnusableApps

func AllUnusableApps() ([]steam.App, error)

AllUnusableApps returns a slice with all unusable applications.

func AllUsableApps

func AllUsableApps() ([]steam.App, error)

AllUsableApps returns a slice with all usable applications.

func GetName

func GetName(appId int) (name string, err error)

GetName returns name of a specified application.

func MarkAppAsUnusable

func MarkAppAsUnusable(appId int) error

MarkAppAsUnusable marks application as unusable.

func MarkAppAsUsable

func MarkAppAsUsable(appId int) error

MarkAppAsUsable marks application as usable.

func OpenMetadataDB

func OpenMetadataDB() (*sql.DB, error)

OpenMetadataDB opens database with metadata about all apps and, if successful, returns a reference to it.

func SaveMetadata

func SaveMetadata(apps []steam.App) error
func Search(query string) (apps []steam.App, err error)

Search finds applications that have name simmilar to one that is specified in a query. It's case insensitive. Returns at most 10 results.

Types

This section is empty.

Jump to

Keyboard shortcuts

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