Documentation ¶
Index ¶
- Constants
- func IsTestMode() bool
- type EventData
- type ImportFromPKey
- type PromptCtrl
- type PromptRequestAction
- type WalletApp
- func (a *WalletApp) AbortAction()
- func (a *WalletApp) BeforeClose(ctx context.Context) bool
- func (a *WalletApp) Hide()
- func (a *WalletApp) ImportPrivateKey(pkey 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) 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 PromptRequestAction ¶
type PromptRequestAction int
const ( Delete PromptRequestAction = iota NewPassword Sign Import Backup Transfer TradeRolls Unprotect )
type WalletApp ¶
type WalletApp struct { Ctx context.Context CtrlChan chan PromptCtrl PromptInput chan interface{} Shutdown bool IsListening bool }
func NewWalletApp ¶
func NewWalletApp() *WalletApp
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 binded to the frontend
Click to show internal directories.
Click to hide internal directories.