Documentation ¶
Index ¶
- type Authdata
- type DistroJSON
- type LatestVersionInfo
- type LauncherApplication
- func (a *LauncherApplication) BackupSettings(distroinfo *DistroJSON)
- func (a *LauncherApplication) CreatePath(p string) (*os.File, error)
- func (a *LauncherApplication) CreateRequiredDirs()
- func (a *LauncherApplication) Downloader(path string, url string, blake3sum string)
- func (a *LauncherApplication) GetAuthData(username string, password string) int
- func (a *LauncherApplication) GetLatestGameVersion(distroinfo *DistroJSON) LatestVersionInfo
- func (a *LauncherApplication) GetMD5Hash(text string) string
- func (a *LauncherApplication) RunGame()
- func (a *LauncherApplication) SetDiscordStatus(nickname string, guild string)
- func (a *LauncherApplication) Updater(distroinfo *DistroJSON)
- func (a *LauncherApplication) UserHomeDir() string
- func (a *LauncherApplication) WailsInit(runtime *wails.Runtime) error
- type LoginJSON
- type SelectedProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authdata ¶
type Authdata struct { AccessToken string `json:"accessToken"` ClientToken string `json:"clientToken"` Profile SelectedProfile `json:"selectedProfile"` }
type DistroJSON ¶
type DistroJSON struct { Version string `json:"version"` Discord struct { ClientID string `json:"clientId"` SmallImageText string `json:"smallImageText"` SmallImageKey string `json:"smallImageKey"` } `json:"discord"` Rss string `json:"rss"` Servers []struct { ID string `json:"id"` Name struct { EnUS string `json:"en_US"` } `json:"name"` Description struct { EnUS string `json:"en_US"` } `json:"description"` Icon string `json:"icon"` Versions []struct { ID string `json:"id"` Type string `json:"type"` URL string `json:"url"` } `json:"versions"` Address string `json:"address"` Discord struct { ShortID string `json:"shortId"` LargeImageText string `json:"largeImageText"` LargeImageKey string `json:"largeImageKey"` } `json:"discord"` MainServer bool `json:"mainServer"` Autoconnect bool `json:"autoconnect"` } `json:"servers"` }
func GetDistroInfo ¶
func GetDistroInfo(AccessToken string) DistroJSON
type LatestVersionInfo ¶
type LauncherApplication ¶
type LauncherApplication struct { Version string RT *wails.Runtime // contains filtered or unexported fields }
func (*LauncherApplication) BackupSettings ¶
func (a *LauncherApplication) BackupSettings(distroinfo *DistroJSON)
func (*LauncherApplication) CreatePath ¶
func (a *LauncherApplication) CreatePath(p string) (*os.File, error)
func (*LauncherApplication) CreateRequiredDirs ¶
func (a *LauncherApplication) CreateRequiredDirs()
func (*LauncherApplication) Downloader ¶
func (a *LauncherApplication) Downloader(path string, url string, blake3sum string)
func (*LauncherApplication) GetAuthData ¶
func (a *LauncherApplication) GetAuthData(username string, password string) int
func (*LauncherApplication) GetLatestGameVersion ¶
func (a *LauncherApplication) GetLatestGameVersion(distroinfo *DistroJSON) LatestVersionInfo
func (*LauncherApplication) GetMD5Hash ¶
func (a *LauncherApplication) GetMD5Hash(text string) string
func (*LauncherApplication) RunGame ¶
func (a *LauncherApplication) RunGame()
func (*LauncherApplication) SetDiscordStatus ¶
func (a *LauncherApplication) SetDiscordStatus(nickname string, guild string)
func (*LauncherApplication) Updater ¶
func (a *LauncherApplication) Updater(distroinfo *DistroJSON)
func (*LauncherApplication) UserHomeDir ¶
func (a *LauncherApplication) UserHomeDir() string
Click to show internal directories.
Click to hide internal directories.