Versions in this module Expand all Collapse all v1 v1.4.9 Sep 30, 2020 Changes in this version + const IndexableAttrBlockHash + const IndexableAttrBlockNum + const IndexableAttrBlockNumTranNum + const IndexableAttrBlockTxID + const IndexableAttrTxID + const IndexableAttrTxValidationCode + var ErrAttrNotIndexed = errors.New("attribute not indexed") + var ErrNotFoundInIndex = l.NotFoundInIndexErr("") + type BlockStore interface + AddBlock func(block *common.Block) error + GetBlockchainInfo func() (*common.BlockchainInfo, error) + RetrieveBlockByHash func(blockHash []byte) (*common.Block, error) + RetrieveBlockByNumber func(blockNum uint64) (*common.Block, error) + RetrieveBlockByTxID func(txID string) (*common.Block, error) + RetrieveBlocks func(startNum uint64) (ledger.ResultsIterator, error) + RetrieveTxByBlockNumTranNum func(blockNum uint64, tranNum uint64) (*common.Envelope, error) + RetrieveTxByID func(txID string) (*common.Envelope, error) + RetrieveTxValidationCodeByTxID func(txID string) (peer.TxValidationCode, error) + Shutdown func() + type BlockStoreProvider interface + Close func() + CreateBlockStore func(ledgerid string) (BlockStore, error) + Exists func(ledgerid string) (bool, error) + List func() ([]string, error) + OpenBlockStore func(ledgerid string) (BlockStore, error) + type IndexConfig struct + AttrsToIndex []IndexableAttr + type IndexableAttr string Incompatible versions in this module v2.1.1+incompatible Jun 1, 2020