Documentation ¶
Index ¶
Constants ¶
View Source
const ( IndexableAttrBlockNum = IndexableAttr("BlockNum") IndexableAttrBlockHash = IndexableAttr("BlockHash") IndexableAttrTxID = IndexableAttr("TxID") IndexableAttrBlockNumTranNum = IndexableAttr("BlockNumTranNum") )
Variables ¶
View Source
var ( ErrNotFoundInIndex = l.NotFoundInIndexErr("") ErrAttrNotIndexed = errors.New("attribute not indexed") )
Functions ¶
This section is empty.
Types ¶
type BlockStore ¶
type BlockStore interface { AddBlock(block *common.Block) error GetBlockchainInfo() (*common.BlockchainInfo, error) RetrieveBlocks(startNum uint64) (ledger.ResultsIterator, error) RetrieveBlockByHash(blockHash []byte) (*common.Block, error) RetrieveBlockByNumber(blockNum uint64) (*common.Block, error) RetrieveTxByID(txID string) (*common.Envelope, error) RetrieveTxByBlockNumTranNum(blockNum uint64, tranNum uint64) (*common.Envelope, error) RetrieveBlockByTxID(txID string) (*common.Block, error) RetrieveTxValidationCodeByTxID(txID string) (peer.TxValidationCode, error) Shutdown() }
type BlockStoreProvider ¶
type IndexConfig ¶
type IndexConfig struct {
AttrsToIndex []IndexableAttr
}
func (*IndexConfig) Contains ¶
func (c *IndexConfig) Contains(indexableAttr IndexableAttr) bool
type IndexableAttr ¶
type IndexableAttr string
Click to show internal directories.
Click to hide internal directories.