Versions in this module Expand all Collapse all v0 v0.0.1 Oct 10, 2022 Changes in this version + func DisableLog() + func DropAddrIndex(db database.DB, interrupt <-chan struct{}) error + func DropTxIndex(db database.DB, interrupt <-chan struct{}) error + func UseLogger(logger btclog.Logger) + type AddrIndex struct + func NewAddrIndex(db database.DB, chainParams *chaincfg.Params) *AddrIndex + func (idx *AddrIndex) AddUnconfirmedTx(tx *btcutil.Tx, utxoView *blockchain.UtxoViewpoint) + func (idx *AddrIndex) ConnectBlock(dbTx database.Tx, block *btcutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *AddrIndex) Create(dbTx database.Tx) error + func (idx *AddrIndex) DisconnectBlock(dbTx database.Tx, block *btcutil.Block, view *blockchain.UtxoViewpoint) 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 btcutil.Address, numToSkip, numRequested uint32, ...) ([]database.BlockRegion, uint32, error) + func (idx *AddrIndex) UnconfirmedTxnsForAddress(addr btcutil.Address) []*btcutil.Tx + type AssertError string + func (e AssertError) Error() string + type Indexer interface + ConnectBlock func(dbTx database.Tx, block *btcutil.Block, view *blockchain.UtxoViewpoint) error + Create func(dbTx database.Tx) error + DisconnectBlock func(dbTx database.Tx, block *btcutil.Block, view *blockchain.UtxoViewpoint) 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 *btcutil.Block, view *blockchain.UtxoViewpoint) error + func (m *Manager) DisconnectBlock(dbTx database.Tx, block *btcutil.Block, view *blockchain.UtxoViewpoint) 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 *btcutil.Block, view *blockchain.UtxoViewpoint) error + func (idx *TxIndex) Create(dbTx database.Tx) error + func (idx *TxIndex) DisconnectBlock(dbTx database.Tx, block *btcutil.Block, view *blockchain.UtxoViewpoint) 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)