app

package
v1.1.1-beta.0...-c84c1aa Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

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 LatestVersionInfo struct {
	Resources struct {
		Files []struct {
			Path     string `json:"path"`
			URL      string `json:"url"`
			Checksum string `json:"checksum"`
		} `json:"files"`
	} `json:"resources"`
}

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

func (*LauncherApplication) WailsInit

func (a *LauncherApplication) WailsInit(runtime *wails.Runtime) error

WailsInit initializes the Client and Server side bindings

type LoginJSON

type LoginJSON struct {
	Agent       string `json:"agent"`
	Username    string `json:"username"`
	RequestUser bool   `json:"requestUser"`
	Password    string `json:"password"`
}

type SelectedProfile

type SelectedProfile struct {
	Id        string `json:"id"`
	Login     string `json:"login"`
	Name      string `json:"name"`
	AvatarUrl string `json:"avatarUrl"`
}

Jump to

Keyboard shortcuts

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