execution

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const PeerType = "execution"

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

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

func New

func New(ctx context.Context, log logrus.FieldLogger, nodeRecord string, handlers *handler.Peer, captureDelay time.Duration, sharedCache *coordCache.SharedCache) (*Peer, error)

func (*Peer) ExportTransactions

func (p *Peer) ExportTransactions(ctx context.Context, items []*TransactionHashItem) error

func (*Peer) Start

func (p *Peer) Start(ctx context.Context) (<-chan error, error)

func (*Peer) Stop

func (p *Peer) Stop(ctx context.Context) error

func (*Peer) Type

func (p *Peer) Type() string

type TransactionExporter

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

func NewTransactionExporter

func NewTransactionExporter(log logrus.FieldLogger, handler func(ctx context.Context, items []*TransactionHashItem) error) (TransactionExporter, error)

func (TransactionExporter) ExportItems

func (t TransactionExporter) ExportItems(ctx context.Context, items []*TransactionHashItem) error

func (TransactionExporter) Shutdown

func (t TransactionExporter) Shutdown(ctx context.Context) error

type TransactionHashItem

type TransactionHashItem struct {
	Hash common.Hash
	Seen time.Time
}

Jump to

Keyboard shortcuts

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