indexer

package
v0.2.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer struct {
	// contains filtered or unexported fields
}

Indexer is the module that allows operations across multiple services.

func NewIndexer

func NewIndexer(dbConnString, rpcEndpoint string, netParams *params.ChainParams) (*Indexer, error)

func (*Indexer) Context

func (i *Indexer) Context() context.Context

func (*Indexer) ProcessBlock

func (i *Indexer) ProcessBlock(b *primitives.Block) (*chainindex.BlockRow, error)

func (*Indexer) SetGenesisState

func (i *Indexer) SetGenesisState() error

func (*Indexer) Start

func (i *Indexer) Start() error

func (*Indexer) Stop

func (i *Indexer) Stop()

func (*Indexer) StoreStateData

func (i *Indexer) StoreStateData(lastBlock *chainindex.BlockRow) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL