Documentation ¶
Index ¶
- Constants
- func FilterRepositoryName(name string) (filteredName string, e error)
- type Game
- type Manager
- func (m *Manager) CacheDir() string
- func (m *Manager) ClearCache() error
- func (m *Manager) FindLangs(games []Game) []string
- func (m *Manager) GetGameImage(game *Game) (imagePath string, e error)
- func (m *Manager) GetInstalledGames() ([]Game, error)
- func (m *Manager) GetMergedGames() ([]Game, error)
- func (m *Manager) GetRepositories() []configurator.Repository
- func (m *Manager) GetRepositoryGames() ([]Game, error)
- func (m *Manager) GetSortedGames() ([]Game, error)
- func (m *Manager) GetSortedGamesBy(sortBy string) ([]Game, error)
- func (m *Manager) GetSortedGamesByDateDesc() ([]Game, error)
- func (m *Manager) HasDownloadedRepositories() bool
- func (m *Manager) InstallGame(game *Game, progressF func(uint64)) error
- func (m *Manager) InterpreterCommand() string
- func (m *Manager) IsBuiltinInterpreterCommand() bool
- func (m *Manager) RemoveGame(game *Game) error
- func (m *Manager) RunGame(game *Game) error
- func (m *Manager) StopRunningGame() error
- func (m *Manager) UpdateRepositories() []error
- type RepositoryGame
- type RepositoryGameList
- type WriteCounter
Constants ¶
View Source
const ( SortByTitleAsc = "title" SortByDateDesc = "date" )
Variables ¶
This section is empty.
Functions ¶
func FilterRepositoryName ¶
Types ¶
type Game ¶
type Game RepositoryGame
func FilterGames ¶
func FindGameById ¶
func FindGamesByName ¶
func (*Game) HumanVersion ¶
func (*Game) IsUpdateAvailable ¶
type Manager ¶
type Manager struct { Config *configurator.InsteadmanConfig InterpreterFinder *interpreterfinder.InterpreterFinder CurrentRunningCmd *exec.Cmd }
func (*Manager) ClearCache ¶
func (*Manager) GetGameImage ¶
func (*Manager) GetInstalledGames ¶
func (*Manager) GetMergedGames ¶
func (*Manager) GetRepositories ¶
func (m *Manager) GetRepositories() []configurator.Repository
func (*Manager) GetRepositoryGames ¶
func (*Manager) GetSortedGames ¶
func (*Manager) GetSortedGamesBy ¶
func (*Manager) GetSortedGamesByDateDesc ¶
func (*Manager) HasDownloadedRepositories ¶
func (*Manager) InstallGame ¶
func (*Manager) InterpreterCommand ¶
func (*Manager) IsBuiltinInterpreterCommand ¶
func (*Manager) RemoveGame ¶
func (*Manager) StopRunningGame ¶
func (*Manager) UpdateRepositories ¶
type RepositoryGame ¶
type RepositoryGame struct { // XMLName xml.Name `xml:"game"` Name string `xml:"name"` Title string `xml:"title"` Version string `xml:"version"` Url string `xml:"url"` Size int `xml:"size"` Lang string `xml:"lang"` Descurl string `xml:"descurl"` Author string `xml:"author"` Description string `xml:"description"` Image string `xml:"image"` Langs []string `xml:"langs>lang"` Date string `xml:"date"` Timestamp int64 `xml:"-"` InstalledVersion string `xml:"-"` RepositoryName string `xml:"-"` Installed bool `xml:"-"` OnlyInstalled bool `xml:"-"` //IsUpdateExist bool `xml:"-"` Languages []string `xml:"-"` Id string `xml:"-"` }
type RepositoryGameList ¶
type RepositoryGameList struct { // XMLName xml.Name `xml:"game_list"` GameList []RepositoryGame `xml:"game"` }
type WriteCounter ¶
type WriteCounter struct { Total uint64 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.