Documentation ¶
Index ¶
- type CLI
- func (cli *CLI) Entry(address, data string, amount int) error
- func (cli *CLI) GetBalance(address string) []Block.TXOutput
- func (cli *CLI) GetBalanceDetails(address string) []Block.Transaction
- func (cli *CLI) GetBlockChain() []byte
- func (cli *CLI) GetLocalHost() string
- func (cli *CLI) GetNodeAll(address string) []Block.Transaction
- func (cli *CLI) GetNodeList(txid string) []Block.Transaction
- func (cli *CLI) GetServerBlockChain() []byte
- func (cli *CLI) GetServerList() []Serverinfo
- func (cli *CLI) GetServerVersion() int
- func (cli *CLI) GetTranList() []Block.Transaction
- func (cli *CLI) GetVersion() int
- func (cli *CLI) Register(mode Servertype, address string)
- func (cli *CLI) Run()
- func (cli *CLI) Send(from, to, data string, amount int) error
- func (cli *CLI) SendAddress()
- func (cli *CLI) SendTxid(from, to, data, txid string) error
- func (cli *CLI) SetBlockChain(d []byte) error
- func (cli *CLI) Syncdata()
- func (cli *CLI) Users() []string
- type Serverinfo
- type Servertype
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct { Localhost string Servers []Serverinfo // contains filtered or unexported fields }
var Cli *CLI
func GetInstance ¶
func GetInstance() *CLI
func (*CLI) GetBalanceDetails ¶
func (cli *CLI) GetBalanceDetails(address string) []Block.Transaction
获取余额明细
func (*CLI) Register ¶
func (cli *CLI) Register(mode Servertype, address string)
type Serverinfo ¶
type Serverinfo struct { ServerType Servertype Address string }
type Servertype ¶
type Servertype int
const ( CentralServer Servertype = iota + 1 TransactionServer InteractiveServer )
Click to show internal directories.
Click to hide internal directories.