Documentation
¶
Index ¶
- type Interface
- func (inter *Interface) CreateBlockChain(address string)
- func (inter *Interface) CreateWallet()
- func (inter *Interface) GetBalance(address string)
- func (inter *Interface) Help()
- func (inter *Interface) ListAddresses()
- func (inter *Interface) PrintChain()
- func (inter *Interface) PrintUsage()
- func (inter *Interface) PrintVersionInfo()
- func (inter *Interface) Run()
- func (inter *Interface) Send(from, to string, amount int)
- func (inter *Interface) ValidateArguments()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶ added in v0.0.2
type Interface struct{}
Interface struct for handling command line interface
func (*Interface) CreateBlockChain ¶ added in v0.0.2
CreateBlockChain to create a blockchain with the address as the genesis.
func (*Interface) CreateWallet ¶ added in v0.0.2
func (inter *Interface) CreateWallet()
CreateWallet to create a wallet in the addressbook
func (*Interface) GetBalance ¶ added in v0.0.2
GetBalance to get the balance from the address
func (*Interface) Help ¶ added in v0.0.2
func (inter *Interface) Help()
Help to print help information for the CommandInterface
func (*Interface) ListAddresses ¶ added in v0.0.2
func (inter *Interface) ListAddresses()
ListAddresses to list all addresses in the addressbook
func (*Interface) PrintChain ¶ added in v0.0.2
func (inter *Interface) PrintChain()
PrintChain to print the Blocks in the BlockChain from inter
func (*Interface) PrintUsage ¶ added in v0.0.2
func (inter *Interface) PrintUsage()
PrintUsage for printing usage instructions
func (*Interface) PrintVersionInfo ¶ added in v0.0.2
func (inter *Interface) PrintVersionInfo()
PrintVersionInfo to print version information of the system
func (*Interface) Run ¶ added in v0.0.2
func (inter *Interface) Run()
Run to run the command line interface
func (*Interface) ValidateArguments ¶ added in v0.0.2
func (inter *Interface) ValidateArguments()
ValidateArguments to validate the arguments for the CommandInterface
Click to show internal directories.
Click to hide internal directories.