ledger

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ledger

type Ledger interface {
	//
	GetBlockchainInfo() (*common.BlockchainInfo, error)
	//
	//
	GetBlockByNumber(blockNumber uint64) (*common.Block, error)
	//
	//迭代器是一个阻塞迭代器,也就是说,它阻塞直到下一个块在分类帐中可用为止。
	//resultsiterator包含类型blockholder
	GetBlocksIterator(startBlockNumber uint64) (ResultsIterator, error)
	//关闭关闭分类帐
	Close()
}

type PrunePolicy

type PrunePolicy interface{}

prunepolicy-支持不同修剪策略的通用接口

type QueryResult

type QueryResult interface{}

queryresult-支持不同类型查询结果的通用接口。不同查询的实际类型不同

type QueryResultsIterator

type QueryResultsIterator interface {
	ResultsIterator
	GetBookmarkAndClose() string
}

queryresultsiterator-查询结果集的迭代器

type ResultsIterator

type ResultsIterator interface {
	//Next返回结果集中的下一项。当
	//迭代器耗尽
	Next() (QueryResult, error)
	//close释放迭代器占用的资源
	Close()
}

resultsiterator-查询结果集的迭代器

Directories

Path Synopsis
mocks
Code generated by mockery v1.0.0.
Code generated by mockery v1.0.0.
ram

Jump to

Keyboard shortcuts

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