gui

package
v0.0.0-...-8ce86af Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: GPL-3.0 Imports: 10 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 {
	// contains filtered or unexported fields
}

App struct

func NewApp

func NewApp() *App

NewApp creates a new App application struct

func (*App) BeforeClose

func (a *App) BeforeClose(ctx context.Context) (prevent bool)

BeforeClose is called when the application is about to quit, either by clicking the window close button or calling runtime.Quit. Returning true will cause the application to continue, false will continue shutdown as normal.

func (*App) CreateWallet

func (a *App) CreateWallet(nodeID string) string

CreateWallet returns the wallet address of a newly generated wallet

func (App) DomReady

func (a App) DomReady(ctx context.Context)

DomReady is called after front-end resources have been loaded

func (*App) GetAddresses

func (a *App) GetAddresses(nodeID string) []string

GetAddresses is used for getting all addresses

func (*App) GetAddressesWithBalances

func (a *App) GetAddressesWithBalances(nodeID string) []balances

func (*App) GetBlockInfos

func (a *App) GetBlockInfos(nodeID string) []blocks

func (*App) GetTransactions

func (a *App) GetTransactions(nodeID string) []transactions

func (*App) Greet

func (a *App) Greet(name string) string

Greet returns a greeting for the given name

func (*App) SendTransaction

func (a *App) SendTransaction(from, to string, amount int, nodeID string, mineNow bool)

Send Transactions - NEEDS UPDATING

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context)

Shutdown is called at application termination

func (*App) StartNode

func (a *App) StartNode(nodeID, minerAddress string)

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup is called at application startup

Jump to

Keyboard shortcuts

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