eth

package
v0.0.0-...-e657c6f Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	StartSyncer(context.Context, db.DB) error
	StartListener(context.Context, db.DB) error
	Close()
}

func NewClient

func NewClient(url string, pubsub pubsub.PubSub) (Client, error)

type EthClient

type EthClient struct {
	*ethclient.Client
	pubsub.PubSub
}

func (EthClient) Close

func (c EthClient) Close()

func (EthClient) StartListener

func (c EthClient) StartListener(ctx context.Context, dbConn db.DB) error

func (EthClient) StartSyncer

func (c EthClient) StartSyncer(ctx context.Context, dbConn db.DB) error

Jump to

Keyboard shortcuts

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