Versions in this module Expand all Collapse all v0 v0.2.17 Dec 28, 2019 v0.2.15 Dec 28, 2019 Changes in this version + func DropAddrIndex(db database.DB, interrupt <-chan struct{}) error + func DropCfIndex(db database.DB, interrupt <-chan struct{}) error + func DropTxIndex(db database.DB, interrupt <-chan struct{}) error + type AddrIndex struct + func NewAddrIndex(db database.DB, chainParams *netparams.Params) *AddrIndex + func (idx *AddrIndex) AddUnconfirmedTx(tx *util.Tx, utxoView *blockchain.UtxoViewpoint) + func (idx *AddrIndex) ConnectBlock(dbTx database.Tx, block *util.Block, stxos []blockchain.SpentTxOut) error + func (idx *AddrIndex) Create(dbTx database.Tx) error + func (idx *AddrIndex) DisconnectBlock(dbTx database.Tx, block *util.Block, stxos []blockchain.SpentTxOut) error + func (idx *AddrIndex) Init() error + func (idx *AddrIndex) Key() []byte + func (idx *AddrIndex) Name() string + func (idx *AddrIndex) NeedsInputs() bool + func (idx *AddrIndex) RemoveUnconfirmedTx(hash *chainhash.Hash) + func (idx *AddrIndex) TxRegionsForAddress(dbTx database.Tx, addr util.Address, numToSkip, numRequested uint32, ...) ([]database.BlockRegion, uint32, error) + func (idx *AddrIndex) UnconfirmedTxnsForAddress(addr util.Address) []*util.Tx + type AssertError string + func (e AssertError) Error() string + type CFIndex struct + func NewCfIndex(db database.DB, chainParams *netparams.Params) *CFIndex + func (idx *CFIndex) ConnectBlock(dbTx database.Tx, block *util.Block, stxos []blockchain.SpentTxOut) error + func (idx *CFIndex) Create(dbTx database.Tx) error + func (idx *CFIndex) DisconnectBlock(dbTx database.Tx, block *util.Block, _ []blockchain.SpentTxOut) error + func (idx *CFIndex) FilterByBlockHash(h *chainhash.Hash, filterType wire.FilterType) ([]byte, error) + func (idx *CFIndex) FilterHashByBlockHash(h *chainhash.Hash, filterType wire.FilterType) ([]byte, error) + func (idx *CFIndex) FilterHashesByBlockHashes(blockHashes []*chainhash.Hash, filterType wire.FilterType) ([][]byte, error) + func (idx *CFIndex) FilterHeaderByBlockHash(h *chainhash.Hash, filterType wire.FilterType) ([]byte, error) + func (idx *CFIndex) FilterHeadersByBlockHashes(blockHashes []*chainhash.Hash, filterType wire.FilterType) ([][]byte, error) + func (idx *CFIndex) FiltersByBlockHashes(blockHashes []*chainhash.Hash, filterType wire.FilterType) ([][]byte, error) + func (idx *CFIndex) Init() error + func (idx *CFIndex) Key() []byte + func (idx *CFIndex) Name() string + func (idx *CFIndex) NeedsInputs() bool + type Indexer interface + ConnectBlock func(database.Tx, *util.Block, []blockchain.SpentTxOut) error + Create func(dbTx database.Tx) error + DisconnectBlock func(database.Tx, *util.Block, []blockchain.SpentTxOut) error + Init func() error + Key func() []byte + Name func() string + type Manager struct + func NewManager(db database.DB, enabledIndexes []Indexer) *Manager + func (m *Manager) ConnectBlock(dbTx database.Tx, block *util.Block, stxos []blockchain.SpentTxOut) error + func (m *Manager) DisconnectBlock(dbTx database.Tx, block *util.Block, stxo []blockchain.SpentTxOut) error + func (m *Manager) Init(chain *blockchain.BlockChain, interrupt <-chan struct{}) error + type NeedsInputser interface + NeedsInputs func() bool + type TxIndex struct + func NewTxIndex(db database.DB) *TxIndex + func (idx *TxIndex) ConnectBlock(dbTx database.Tx, block *util.Block, stxos []blockchain.SpentTxOut) error + func (idx *TxIndex) Create(dbTx database.Tx) error + func (idx *TxIndex) DisconnectBlock(dbTx database.Tx, block *util.Block, stxos []blockchain.SpentTxOut) error + func (idx *TxIndex) Init() error + func (idx *TxIndex) Key() []byte + func (idx *TxIndex) Name() string + func (idx *TxIndex) TxBlockRegion(hash *chainhash.Hash) (*database.BlockRegion, error)