indexer

package
v0.0.0-...-450f598 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParam = errors.New("config or param invalid")
)

errors .

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	Name   string `xorm:"pk"`
	Offset int64  `xorm:""`
}

Cursor .

func (*Cursor) TableName

func (cursor *Cursor) TableName() string

TableName .

type Fetcher

type Fetcher interface {
	FetchAndHandle(offset int64) (bool, error)
}

Fetcher the block indexer fetcher

type Indexer

type Indexer interface {
	Run() error
}

Indexer .

func NewIndexer

func NewIndexer(config config.Config, fetcher Fetcher) (Indexer, error)

NewIndexer .

Directories

Path Synopsis
bnb
eth
ont
trx

Jump to

Keyboard shortcuts

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