Documentation ¶
Index ¶
- Constants
- func IsTestMode() bool
- type EventData
- type ImportFromPKey
- type PromptCtrl
- type PromptRequestAction
- type SignPromptInput
- type SignPromptOutput
- type WalletApp
- func (a *WalletApp) AbortAction()
- func (a *WalletApp) BeforeClose(ctx context.Context) bool
- func (a *WalletApp) Hide()
- func (a *WalletApp) ImportPrivateKey(privateKeyText string, nickname string, password string)
- func (a *WalletApp) IsNicknameUnique(nickname string) bool
- func (a *WalletApp) IsNicknameValid(nickname string) bool
- func (a *WalletApp) SelectAccountFile() selectFileResult
- func (a *WalletApp) SendPromptInput(input string)
- func (a *WalletApp) SendSignPromptInput(password string, fees string)
- func (a *WalletApp) Show()
- func (a *WalletApp) Startup(ctx context.Context)
Constants ¶
View Source
const ( PromptResultEvent string = "promptResult" PromptDataEvent string = "promptData" PromptRequestEvent string = "promptRequest" )
Variables ¶
This section is empty.
Functions ¶
func IsTestMode ¶
func IsTestMode() bool
Types ¶
type ImportFromPKey ¶
type ImportFromPKey struct { PrivateKey *memguard.LockedBuffer Password *memguard.LockedBuffer Nickname string }
type PromptRequestAction ¶
type PromptRequestAction int
const ( Delete PromptRequestAction = iota NewPassword Sign Import Backup TradeRolls Unprotect )
type SignPromptInput ¶ added in v0.2.9
type SignPromptOutput ¶ added in v0.2.9
type SignPromptOutput struct { Password *memguard.LockedBuffer Fees uint64 }
type WalletApp ¶
type WalletApp struct { Ctx context.Context CtrlChan chan PromptCtrl PromptInput chan interface{} Wallet *wallet.Wallet Shutdown bool IsListening bool }
func NewWalletApp ¶
func (*WalletApp) AbortAction ¶
func (a *WalletApp) AbortAction()
AbortAction is bound to the frontend It sends a cancel message to the prompt
func (*WalletApp) ImportPrivateKey ¶
func (*WalletApp) IsNicknameUnique ¶
func (*WalletApp) IsNicknameValid ¶
func (*WalletApp) SelectAccountFile ¶
func (a *WalletApp) SelectAccountFile() selectFileResult
func (*WalletApp) SendPromptInput ¶
SendPromptInput is bound to the frontend
func (*WalletApp) SendSignPromptInput ¶ added in v0.2.9
SendSignPromptInput is bound to the frontend
Click to show internal directories.
Click to hide internal directories.