Documentation ¶
Index ¶
- type KeystoreCSVOutputWriter
- type KeystoreJSONOutputWriter
- type KeystoreOutputWriter
- type KeystoreTableOutputWriter
- type KeystoreTextOutputWriter
- type SeedCSVOutputWriter
- type SeedJSONOutputWriter
- type SeedOutputWriter
- type SeedTableOutputWriter
- type SeedTextOutputWriter
- type WalletCSVOutputWriter
- type WalletJSONOutputWriter
- type WalletOutputWriter
- type WalletTableOutputWriter
- type WalletTextOuputWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeystoreCSVOutputWriter ¶ added in v0.3.1
type KeystoreCSVOutputWriter struct{}
KeystoreCSVOutputWriter writes keystore output in CSV format.
func (KeystoreCSVOutputWriter) WriteCreateOutput ¶ added in v0.3.1
func (w KeystoreCSVOutputWriter) WriteCreateOutput(ks keystore.KeystoreWrapper) error
func (KeystoreCSVOutputWriter) WriteListOutput ¶ added in v0.3.1
func (w KeystoreCSVOutputWriter) WriteListOutput(accounts []accounts.Account) error
type KeystoreJSONOutputWriter ¶
type KeystoreJSONOutputWriter struct{}
KeyStoreJSONOutputWriter writes keystore output in JSON format.
func (KeystoreJSONOutputWriter) WriteCreateOutput ¶
func (w KeystoreJSONOutputWriter) WriteCreateOutput(ks keystore.KeystoreWrapper) error
func (KeystoreJSONOutputWriter) WriteListOutput ¶
func (w KeystoreJSONOutputWriter) WriteListOutput(accounts []accounts.Account) error
type KeystoreOutputWriter ¶
type KeystoreOutputWriter interface { WriteCreateOutput(ks keystore.KeystoreWrapper) error WriteListOutput(accounts []accounts.Account) error }
KeystoreOutputWriter is an interface for writing keystore information to different output formats.
type KeystoreTableOutputWriter ¶
type KeystoreTableOutputWriter struct{}
KeystoreTableOutputWriter writes keystore output in table format.
func (KeystoreTableOutputWriter) WriteCreateOutput ¶
func (w KeystoreTableOutputWriter) WriteCreateOutput(ks keystore.KeystoreWrapper) error
func (KeystoreTableOutputWriter) WriteListOutput ¶
func (w KeystoreTableOutputWriter) WriteListOutput(accounts []accounts.Account) error
type KeystoreTextOutputWriter ¶
type KeystoreTextOutputWriter struct{}
KeystoreTextOutputWriter writes keystore output in pure text format.
func (KeystoreTextOutputWriter) WriteCreateOutput ¶
func (w KeystoreTextOutputWriter) WriteCreateOutput(ks keystore.KeystoreWrapper) error
func (KeystoreTextOutputWriter) WriteListOutput ¶
func (w KeystoreTextOutputWriter) WriteListOutput(accounts []accounts.Account) error
type SeedCSVOutputWriter ¶ added in v0.3.1
type SeedCSVOutputWriter struct{}
SeedCSVOutputWriter writes seed output in CSV format.
func (SeedCSVOutputWriter) WriteOutput ¶ added in v0.3.1
func (s SeedCSVOutputWriter) WriteOutput(mnemonics []string, seeds [][]byte) error
type SeedJSONOutputWriter ¶
type SeedJSONOutputWriter struct{}
SeedJSONOutputWriter writes seed output in JSON format.
func (SeedJSONOutputWriter) WriteOutput ¶
func (s SeedJSONOutputWriter) WriteOutput(mnemonics []string, seeds [][]byte) error
type SeedOutputWriter ¶
SeedOutputWriter is an interface for writing seed information to different output formats.
type SeedTableOutputWriter ¶
type SeedTableOutputWriter struct{}
SeedTableOutputWriter writes seed output in table format.
func (SeedTableOutputWriter) WriteOutput ¶
func (s SeedTableOutputWriter) WriteOutput(mnemonics []string, seeds [][]byte) error
type SeedTextOutputWriter ¶
type SeedTextOutputWriter struct{}
SeedTextOutputWriter writes seed output in text format.
func (SeedTextOutputWriter) WriteOutput ¶
func (s SeedTextOutputWriter) WriteOutput(mnemonics []string, seeds [][]byte) error
type WalletCSVOutputWriter ¶ added in v0.3.1
type WalletCSVOutputWriter struct{}
WalletCSVOutputWriter writes wallet information in CSV format.
func (WalletCSVOutputWriter) WriteCreateOutput ¶ added in v0.3.1
func (w WalletCSVOutputWriter) WriteCreateOutput(wallets []*wallet.Wallet) error
WriteCreateOutput writes the details of the wallets in CSV format to standard output.
type WalletJSONOutputWriter ¶
type WalletJSONOutputWriter struct{}
WalletJSONOutputWriter is a type that implements the OutputWriter interface for JSON-formatted data.
func (WalletJSONOutputWriter) WriteCreateOutput ¶
func (j WalletJSONOutputWriter) WriteCreateOutput(walletInfos []*wallet.Wallet) error
WriteWalletOutput writes the details of the wallets to standard output in JSON format. Returns an error if JSON marshaling fails.
type WalletOutputWriter ¶
WalletOutputWriter is an interface for writing wallet information to different output formats.
type WalletTableOutputWriter ¶ added in v0.3.1
type WalletTableOutputWriter struct{}
WalletTableOutputWriter is a type that implements the OutputWriter interface for table-formatted data.
func (WalletTableOutputWriter) WriteCreateOutput ¶ added in v0.3.1
func (t WalletTableOutputWriter) WriteCreateOutput(walletInfos []*wallet.Wallet) error
WriteCreateOutput writes the details of the wallets to standard output in table format. Returns nil as it does not encounter any errors in the process.
type WalletTextOuputWriter ¶
type WalletTextOuputWriter struct{}
func (WalletTextOuputWriter) WriteCreateOutput ¶
func (w WalletTextOuputWriter) WriteCreateOutput(wallets []*wallet.Wallet) error
WriteCreateOutput writes the details of the wallets in a clear, readable, text format.