app

package module
v0.0.0-...-7e97987 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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 App

type App struct {
	State      *WalletState
	Runtime    *wails.Runtime
	DB         *gorm.DB
	FilePath   *FilePaths
	KillSignal chan struct{}
}

func (*App) TempFileName

func (a *App) TempFileName(prefix, suffix string) string

func (*App) WailsInit

func (a *App) WailsInit(runtime *wails.Runtime) *App

WailsInit initializes the Client and Server side bindings

func (*App) WailsShutdown

func (a *App) WailsShutdown()

WailsShutdown is called when the application is closed

type FilePaths

type FilePaths struct {
	HomeDir        string
	DAGDir         string
	TMPDir         string
	LogFile        string
	SqliteDB       string
	EncryptedDir   string
	EncPrivKeyFile string
	EmptyTXFile    string
	PrevTXFile     string
	LastTXFile     string
	AddressFile    string
	ImageDir       string
	Java           string
}

Working directories and files

type WalletState

type WalletState struct {
	KeyStoreAccess      bool
	TransactionFinished bool
	TransactionFailed   bool
	UserLoggedIn        bool
	NewUser             bool
	WalletImported      bool
	FirstTX             bool
	SecondTX            bool
	WidgetRunning       struct {
		PassKeysToFrontend bool
		DashboardWidgets   bool
	}
}

type WriteCounter

type WriteCounter struct {
	Total    uint64
	LastEmit uint64
	Filename string
	// contains filtered or unexported fields
}

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Directories

Path Synopsis
login module

Jump to

Keyboard shortcuts

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