Documentation
¶
Index ¶
- type Ingester
- type PGIndexer
- func (pgi *PGIndexer) ConnectBlock(_ database.Tx, block *jaxutil.Block, actualMMRRoot chainhash.Hash, ...) error
- func (pgi *PGIndexer) Create(_ database.Tx) error
- func (pgi *PGIndexer) DisconnectBlock(_ database.Tx, block *jaxutil.Block, _ []chaindata.SpentTxOut) error
- func (pgi *PGIndexer) Init() error
- func (pgi *PGIndexer) Key() []byte
- func (pgi *PGIndexer) Name() string
- type SerialBlockWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ingester ¶
type Ingester struct {
// contains filtered or unexported fields
}
func NewIngester ¶
type PGIndexer ¶
type PGIndexer struct {
// contains filtered or unexported fields
}
PGIndexer provides an inmplentations of indexer that is managed by an index manager such as the Manager.
func NewIndexer ¶
func (*PGIndexer) ConnectBlock ¶
func (pgi *PGIndexer) ConnectBlock(_ database.Tx, block *jaxutil.Block, actualMMRRoot chainhash.Hash, _ []chaindata.SpentTxOut) error
ConnectBlock is invoked when a new block has been connected to the main chain. The set of output spent within a block is also passed in so indexers can access the pevious output scripts input spent if required.
func (*PGIndexer) Create ¶
Create is invoked when the indexer manager determines the index needs to be created for the first time.
func (*PGIndexer) DisconnectBlock ¶
func (pgi *PGIndexer) DisconnectBlock(_ database.Tx, block *jaxutil.Block, _ []chaindata.SpentTxOut) error
DisconnectBlock is invoked when a block has been disconnected from the main chain. The set of outputs scripts that were spent within this block is also returned so indexers can clean up the prior index state for this block
func (*PGIndexer) Init ¶
Init is invoked when the index manager is first initializing the index. This differs from the Create method in that it is called on every load, including the case the index was just created.
type SerialBlockWriter ¶
type SerialBlockWriter struct {
// contains filtered or unexported fields
}
func NewSerialBlockWriter ¶
func (*SerialBlockWriter) DisconnectBlock ¶
func (sbw *SerialBlockWriter) DisconnectBlock(block string) error
func (*SerialBlockWriter) InitState ¶
func (sbw *SerialBlockWriter) InitState() error