Documentation
¶
Index ¶
- Constants
- func IsTestMode() bool
- type BaseMessage
- type CorrelationIdentifier
- type EventData
- type ImportPKeyPromptInput
- type PromptCtrl
- type PromptRequestAction
- type SignPromptInput
- type SignPromptOutput
- type StringPromptInput
- type WalletApp
- func (a *WalletApp) AbortAction()
- func (a *WalletApp) BeforeClose(ctx context.Context) bool
- func (a *WalletApp) Hide()
- func (a *WalletApp) IsNicknameUnique(nickname string) bool
- func (a *WalletApp) IsNicknameValid(nickname string) bool
- func (a *WalletApp) SelectAccountFile() selectFileResult
- func (a *WalletApp) SendPKeyPromptInput(privateKeyText string, nickname string, password string, correlationID string)
- func (a *WalletApp) SendPromptInput(input string, correlationID string)
- func (a *WalletApp) SendSignPromptInput(password string, fees string, correlationID 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 BaseMessage ¶ added in v0.3.2
type BaseMessage struct {
CorrelationID string
}
BaseMessage contains the common CorrelationID attribute
func (*BaseMessage) GetCorrelationID ¶ added in v0.3.2
func (m *BaseMessage) GetCorrelationID() string
GetCorrelationID retrieves the CorrelationID from the BaseMessage struct
type CorrelationIdentifier ¶ added in v0.3.2
type CorrelationIdentifier interface {
GetCorrelationID() string
}
CorrelationIdentifier interface that all message types will implement
type ImportPKeyPromptInput ¶ added in v0.3.2
type ImportPKeyPromptInput struct { BaseMessage 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 SignPromptInput struct { BaseMessage Password string Fees string }
type SignPromptOutput ¶ added in v0.2.9
type SignPromptOutput struct { Password *memguard.LockedBuffer Fees uint64 }
type StringPromptInput ¶ added in v0.3.2
type StringPromptInput struct { BaseMessage Message string }
type WalletApp ¶
type WalletApp struct { Ctx context.Context CtrlChan chan PromptCtrl PromptInput chan CorrelationIdentifier Wallet *wallet.Wallet Shutdown bool IsListening bool }
func NewWalletApp ¶
func (*WalletApp) AbortAction ¶
func (a *WalletApp) AbortAction()
AbortAction sends a cancel message to the prompt
func (*WalletApp) IsNicknameUnique ¶
func (*WalletApp) IsNicknameValid ¶
func (*WalletApp) SelectAccountFile ¶
func (a *WalletApp) SelectAccountFile() selectFileResult
func (*WalletApp) SendPKeyPromptInput ¶ added in v0.3.2
func (*WalletApp) SendPromptInput ¶
func (*WalletApp) SendSignPromptInput ¶ added in v0.2.9
Click to show internal directories.
Click to hide internal directories.