Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBAgent ¶
type DBAgent interface { Close() GetLatestBlockHash() (string, int) RemoveObject(hash string) bool AddBlockHeader(hash string, h *blockchain.BlockHeader) int64 GetBlockHeader(hash string, h *blockchain.BlockHeader) int64 AddTransaction(t *blockchain.Transaction) int64 GetTransaction(hash string, t *blockchain.Transaction) int64 AddBlock(b *blockchain.Block) int64 GetBlock(hash string, b *blockchain.Block) int64 ShowAllObjets() bool GetDBDataSize() uint64 GetDBStatus() *DBStatus GetTransactionwithUniform(num int, hashes *[]RemoverbleObj) bool GetTransactionwithExponential(num int, hashes *[]RemoverbleObj) bool DeleteNoAccedObjects() UpdateDBNetworkQuery(fromqc int, toqc int, totalqc int) UpdateDBNetworkDelay(addtime int, hop int) ProofStorage(tidx [32]byte, timestamp int64, tsc int) []byte ProofStorage2() }
func NewDBAgent ¶
type DBStatus ¶
type DBStatus struct { Timestamp time.Time ID int TotalBlocks int TotalTransactoins int Headers int Blocks int Transactions int Size int TotalQuery int // the number of query including local storage QueryFrom int // the number of received query QueryTo int // the number of send query TotalDelay int Hop0 int Hop1 int Hop2 int Hop3 int }
type RemoverbleObj ¶
type StorageBLTR ¶
type StorageObj ¶
Click to show internal directories.
Click to hide internal directories.