vue

package
v0.0.0-...-a838072 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2019 License: Unlicense Imports: 34 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunVue

func RunVue(w webview.WebView, v DuoVUE)

Types

type DaemonConfig

type DaemonConfig struct {
	Config *pod.Config `json:"config"`
	Schema pod.Schema  `json:"schema"`
}

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 GetDuoVUE

func GetDuoVUE(cx *conte.Xt) *DuoVUE

func (*DuoVUE) CreateNewAddress

func (d *DuoVUE) CreateNewAddress(acctName, label string) string

func (*DuoVUE) DuoSend

func (d *DuoVUE) DuoSend(wp string, ad string, am float64) string

func (*DuoVUE) GetAddressBook

func (d *DuoVUE) GetAddressBook() (addressbook DuoVUEAddressBook)

func (*DuoVUE) GetBalance

func (d *DuoVUE) GetBalance() DuoVUEbalance

func (*DuoVUE) GetBlock

func (d *DuoVUE) GetBlock(hash string)

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) GetBlockCount

func (d *DuoVUE) GetBlockCount() int64

func (DuoVUE) GetBlockExcerpt

func (d DuoVUE) GetBlockExcerpt(height int) (b DuoVUEblock)

func (*DuoVUE) GetBlockHash

func (d *DuoVUE) GetBlockHash(blockHeight int)

func (*DuoVUE) GetBlocksExcerpts

func (d *DuoVUE) GetBlocksExcerpts(startBlock, blockHeight int) (b *DuoVUEchain)

func (*DuoVUE) GetConnectionCount

func (d *DuoVUE) GetConnectionCount() int32

func (*DuoVUE) GetDifficulty

func (d *DuoVUE) GetDifficulty() float64

func (*DuoVUE) GetNetworkLastBlock

func (d *DuoVUE) GetNetworkLastBlock() int32

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)

func (*DuoVUE) HandleRPC

func (d *DuoVUE) HandleRPC(w webview.WebView, vc string)

func (*DuoVUE) Uptime

func (d *DuoVUE) Uptime() (r int64)
func (v *DuoVUEnode) Stop() {
	r, err := v.cx.RPCServer.HandleStop(v.cx.RPCServer, a, nil)
	r = ""
	return
}

type DuoVUEAddressBook

type DuoVUEAddressBook struct {
	Num       int           `json:"num"`
	Addresses []mod.Address `json:"addresses"`
}

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 DuoVUEbalance struct {
	Balance     string `json:"balance"`
	Unconfirmed string `json:"unconfirmed"`
}

type DuoVUEblock

type DuoVUEblock struct {
	Height     int64   `json:"height"`
	PowAlgoID  uint32  `json:"pow"`
	Difficulty float64 `json:"diff"`
	Amount     float64 `json:"amount"`
	TxNum      int     `json:"txnum"`
	Time       int64   `json:"time"`
	// contains filtered or unexported fields
}

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"`
}

Directories

Path Synopsis
lib
sys

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL