syncer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: GPL-3.0, LGPL-3.0, LGPL-3.0-or-later Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerURL     string
	Overwrite     bool
	ArchiveMode   bool
	JobCount      uint64 = 10
	BlockInterval uint64 = 100
)

Functions

func Close

func Close()

func DialServer

func DialServer() (err error)

func InitMongoServer

func InitMongoServer(mongoURL, dbName, dbUser, dbPassword string)

func SetJobCount

func SetJobCount(count uint64)

Types

type Message

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

type Syncer

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

func NewSyncer

func NewSyncer(stable, start, end uint64) *Syncer

func (*Syncer) Sync

func (s *Syncer) Sync()

func (*Syncer) UpdateBlockInfo

func (s *Syncer) UpdateBlockInfo(wg *sync.WaitGroup)

type Worker

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

func (*Worker) Parse

func (w *Worker) Parse(block *types.Block, receipts types.Receipts)

Jump to

Keyboard shortcuts

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