sync

package
v0.0.0-...-2d88b26 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartBlockSynchronizer

func StartBlockSynchronizer() error

Types

type Block

type Block struct {
	Number string
	Hash   string
}

type BlockSynchronizer

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

func (*BlockSynchronizer) InitEthClient

func (synchronizer *BlockSynchronizer) InitEthClient() error

func (*BlockSynchronizer) Start

func (synchronizer *BlockSynchronizer) Start()

type Dispatcher

type Dispatcher struct{}

func (*Dispatcher) DispatchEvent

func (dispatcher *Dispatcher) DispatchEvent(log *types.Log, db *gorm.DB) error

func (*Dispatcher) Init

func (dispatcher *Dispatcher) Init() error

type LogEventHandler

type LogEventHandler interface {
	HandleEvent(eventLog *types.Log, db *gorm.DB) error
}

Jump to

Keyboard shortcuts

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