engine

package
v0.0.0-...-0e5ff0a Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEthEngine

func NewEthEngine(web3Socket string, syncMode string, syncThreadPool int, syncThreadSize int) *poller.Engine

func NewHlfEngine

func NewHlfEngine(path string, walletUser string, orgUser string, syncMode string, syncThreadPool int, syncThreadSize int) *poller.Engine

Types

type EthEngine

type EthEngine struct {
	*poller.Engine
	// contains filtered or unexported fields
}

func (*EthEngine) Connect

func (engine *EthEngine) Connect() *ethclient.Client

func (*EthEngine) Latest

func (engine *EthEngine) Latest() (*big.Int, error)

func (*EthEngine) Listen

func (engine *EthEngine) Listen()

func (*EthEngine) Process

func (engine *EthEngine) Process(number *big.Int, listening bool) poller.BlockEvent

type HlfEngine

type HlfEngine struct {
	*poller.Engine
	// contains filtered or unexported fields
}

func (*HlfEngine) Connect

func (engine *HlfEngine) Connect()

func (*HlfEngine) Latest

func (engine *HlfEngine) Latest() (*big.Int, error)

func (*HlfEngine) Listen

func (engine *HlfEngine) Listen()

func (*HlfEngine) Process

func (engine *HlfEngine) Process(number *big.Int, listening bool) poller.BlockEvent

Jump to

Keyboard shortcuts

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