Documentation ¶
Index ¶
- func RunVue(w webview.WebView, v DuoVUE)
- type DaemonConfig
- type DuoVUE
- func (d *DuoVUE) CreateNewAddress(acctName, label string) string
- func (d *DuoVUE) DuoSend(wp string, ad string, am float64) string
- func (d *DuoVUE) GetAddressBook() (addressbook DuoVUEAddressBook)
- func (d *DuoVUE) GetBalance() DuoVUEbalance
- func (d *DuoVUE) GetBlock(hash string)
- func (d *DuoVUE) GetBlockChainInfo()
- func (d *DuoVUE) GetBlockCount() int64
- func (d DuoVUE) GetBlockExcerpt(height int) (b DuoVUEblock)
- func (d *DuoVUE) GetBlockHash(blockHeight int)
- func (d *DuoVUE) GetBlocksExcerpts(startBlock, blockHeight int) (b *DuoVUEchain)
- func (d *DuoVUE) GetConnectionCount() int32
- func (d *DuoVUE) GetDifficulty() float64
- func (d *DuoVUE) GetNetworkLastBlock() int32
- func (d *DuoVUE) GetPeerInfo() []*json.GetPeerInfoResult
- func (d *DuoVUE) GetStatus() DuoVUEstatus
- func (d *DuoVUE) GetTransactions(from, count int, cat string) (txs DuoVUEtransactions)
- func (d *DuoVUE) HandleRPC(w webview.WebView, vc string)
- func (d *DuoVUE) Uptime() (r int64)
- type DuoVUEAddressBook
- type DuoVUEConfig
- type DuoVUEbalance
- type DuoVUEblock
- type DuoVUEchain
- type DuoVUEcore
- type DuoVUEnode
- type DuoVUEstatus
- type DuoVUEtransactions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DaemonConfig ¶
type DuoVUE ¶
type DuoVUE struct { Core DuoVUEcore `json:"core"` Config DuoVUEConfig `json:"conf"` Components []mod.DuoVUEcomp `json:"comp"` Repo []mod.DuoVUEcomp `json:"repo"` Status DuoVUEstatus `json:"stat"` Icons map[string]string `json:"ico"` // contains filtered or unexported fields }
func (*DuoVUE) GetAddressBook ¶
func (d *DuoVUE) GetAddressBook() (addressbook DuoVUEAddressBook)
func (*DuoVUE) GetBalance ¶
func (d *DuoVUE) GetBalance() DuoVUEbalance
func (*DuoVUE) GetBlockChainInfo ¶
func (d *DuoVUE) GetBlockChainInfo()
func (v *DuoVUEnode) Addnode(a *json.AddNodeCmd) { r, err := v.cx.RPCServer.HandleAddNode(v.cx.RPCServer, a, nil) return }
func (v *DuoVUEnode) Createrawtransaction(a *json.CreateRawTransactionCmd) { r, err := v.cx.RPCServer.HandleCreateRawTransaction(v.cx.RPCServer, a, nil) r = "" return }
func (v *DuoVUEnode) Decoderawtransaction(a *json.DecodeRawTransactionCmd) { r, err := v.cx.RPCServer.HandleDecodeRawTransaction(v.cx.RPCServer, a, nil) r = json.TxRawDecodeResult{} return }
func (v *DuoVUEnode) Decodescript(a *json.DecodeScriptCmd) { r, err := v.cx.RPCServer.HandleDecodeScript(v.cx.RPCServer, a, nil) return }
func (v *DuoVUEnode) Estimatefee(a *json.EstimateFeeCmd) { r, err := v.cx.RPCServer.HandleEstimateFee(v.cx.RPCServer, a, nil) r = 0.0 return }
func (v *DuoVUEnode) Generate(a *json.GenerateCmd) { r, err := v.cx.RPCServer.HandleGenerate(v.cx.RPCServer, a, nil) r = []string{} return }
func (v *DuoVUEnode) Getaddednodeinfo(a *json.GetAddedNodeInfoCmd) { r, err := v.cx.RPCServer.HandleGetAddedNodeInfo(v.cx.RPCServer, a, nil) r = []string{} return }
func (v *DuoVUEnode) Getbestblock() { r, err := v.cx.RPCServer.HandleGetBestBlock(v.cx.RPCServer, a, nil) r = json.GetBestBlockResult{} return }
func (v *DuoVUEnode) Getbestblockhash() { r, err := v.cx.RPCServer.HandleGetBestBlockHash(v.cx.RPCServer, a, nil) r = "" return }
func (v *DuoVUEnode) Getblock(a *json.GetBlockCmd) { r, err := v.cx.RPCServer.HandleGetBlock(v.cx.RPCServer, a, nil) r = json.GetBlockVerboseResult{} return }
func (DuoVUE) GetBlockExcerpt ¶
func (d DuoVUE) GetBlockExcerpt(height int) (b DuoVUEblock)
func (*DuoVUE) GetBlocksExcerpts ¶
func (d *DuoVUE) GetBlocksExcerpts(startBlock, blockHeight int) (b *DuoVUEchain)
func (*DuoVUE) GetPeerInfo ¶
func (d *DuoVUE) GetPeerInfo() []*json.GetPeerInfoResult
func (v *DuoVUEnode) Gethashespersec() { r, err := v.cx.RPCServer.HandleGetHashesPerSec(v.cx.RPCServer, a, nil) r = int64(0) return }
func (v *DuoVUEnode) Getheaders(a *json.GetHeadersCmd) { r, err := v.cx.RPCServer.HandleGetHeaders(v.cx.RPCServer, a, nil) r = []string{} return }
func (v *DuoVUEnode) Getinfo() { r, err := v.cx.RPCServer.HandleGetInfo(v.cx.RPCServer, a, nil) r = json.InfoChainResult{} return }
func (v *DuoVUEnode) Getmempoolinfo() { r, err := v.cx.RPCServer.HandleGetMempoolInfo(v.cx.RPCServer, a, nil) r = json.GetMempoolInfoResult{} return }
func (v *DuoVUEnode) Getmininginfo() { r, err := v.cx.RPCServer.HandleGetMiningInfo(v.cx.RPCServer, a, nil) r = json.GetMiningInfoResult{} return }
func (v *DuoVUEnode) Getnettotals() { r, err := v.cx.RPCServer.HandleGetNetTotals(v.cx.RPCServer, a, nil) r = json.GetNetTotalsResult{} return }
func (v *DuoVUEnode) Getnetworkhashps(a *json.GetNetworkHashPSCmd) { r, err := v.cx.RPCServer.HandleGetNetworkHashPS(v.cx.RPCServer, a, nil) r = int64(0) return }
func (*DuoVUE) GetStatus ¶
func (d *DuoVUE) GetStatus() DuoVUEstatus
func (*DuoVUE) GetTransactions ¶
func (d *DuoVUE) GetTransactions(from, count int, cat string) (txs DuoVUEtransactions)
type DuoVUEAddressBook ¶
type DuoVUEConfig ¶
type DuoVUEConfig struct { Display mod.DisplayConfig `json:"display"` Daemon DaemonConfig `json:"daemon"` // contains filtered or unexported fields }
func GetCoreCofig ¶
func GetCoreCofig(cx *conte.Xt) (c DuoVUEConfig)
func (*DuoVUEConfig) SaveDaemonCfg ¶
func (d *DuoVUEConfig) SaveDaemonCfg(c pod.Config)
type DuoVUEbalance ¶
type DuoVUEblock ¶
type DuoVUEchain ¶
type DuoVUEchain struct { LastPushed int64 `json:"lastpushed"` Blocks []DuoVUEblock `json:"blocks"` // contains filtered or unexported fields }
type DuoVUEcore ¶
type DuoVUEcore struct { *mod.DuoGuiItem VUE string `json:"vue"` CoreHtml string `json:"html"` CoreJs []byte `json:"js"` CoreCss []byte `json:"css"` Node DuoVUEnode `json:"node"` }
type DuoVUEnode ¶
type DuoVUEnode struct { IsCurrent bool `json:"iscurrent"` NetworkLastBlock int32 `json:"networklastblock"` PeerInfo []*json.GetPeerInfoResult `json:"peerinfo"` Tx json.GetTransactionResult `json:"tx"` TxDetail json.GetTransactionDetailsResult `json:"txdetail"` BlockChainInfo *json.GetBlockChainInfoResult `json:"blockchaininfo"` BlockCount int32 `json:"blockcount"` BlockHash string `json:"blockhash"` Block json.GetBlockVerboseResult `json:"block"` ConnectionCount int32 `json:"connectioncount"` // contains filtered or unexported fields }
type DuoVUEstatus ¶
type DuoVUEstatus struct { //BCI interface{} `json:"bci"` Version string `json:"ver"` WalletVersion map[string]json.VersionResult `json:"walletver"` UpTime int64 `json:"uptime"` Cpu []cpu.InfoStat `json:"cpu"` CpuPercent []float64 `json:"cpupercent"` Memory mem.VirtualMemoryStat `json:"mem"` Disk disk.UsageStat `json:"disk"` CurrentNet string `json:"net"` Chain string `json:"chain"` HashesPerSec int64 `json:"hashrate"` Height int32 `json:"height"` BestBlockHash string `json:"bestblockhash"` NetworkHashPS int64 `json:"networkhashrate"` Peers []*json.GetPeerInfoResult `json:"peers"` //MempoolInfo string `json:"ver"` Difficulty float64 `json:"diff"` Balance DuoVUEbalance `json:"balance"` BlockCount int64 `json:"blockcount"` ConnectionCount int32 `json:"connectioncount"` NetworkLastBlock int32 `json:"networklastblock"` TxsNumber int `json:"txsnumber"` // contains filtered or unexported fields }
System Ststus
func (*DuoVUEstatus) GetWalletVersion ¶
func (s *DuoVUEstatus) GetWalletVersion(d DuoVUE) map[string]json.VersionResult
func (v *DuoVUEnode) Validateaddress(a *json.ValidateAddressCmd) { r, err := v.cx.RPCServer.HandleValidateAddress(v.cx.RPCServer, a, nil) r = json.ValidateAddressChainResult{} return }
func (v *DuoVUEnode) Verifychain(a *json.VerifyChainCmd) { r, err := v.cx.RPCServer.HandleVerifyChain(v.cx.RPCServer, a, nil) }
func (v *DuoVUEnode) Verifymessage(a *json.VerifyMessageCmd) { r, err := v.cx.RPCServer.HandleVerifyMessage(v.cx.RPCServer, a, nil) r = "" return }
type DuoVUEtransactions ¶
type DuoVUEtransactions struct { Txs []json.ListTransactionsResult `json:"txs"` TxsNumber int `json:"txsnumber"` }
Click to show internal directories.
Click to hide internal directories.