Documentation ¶
Index ¶
- type EventHandlerFunc
- type ReceiptDownloader
- func (r *ReceiptDownloader) Forget(txid common.Hash)
- func (r *ReceiptDownloader) Get(txid common.Hash) (*types.Receipt, error)
- func (r *ReceiptDownloader) Join()
- func (r *ReceiptDownloader) Request(txid common.Hash)
- func (r *ReceiptDownloader) Start()
- func (r *ReceiptDownloader) Stats() (queuelen, pendinglen int)
- func (r *ReceiptDownloader) Stop()
- type ReceiptTask
- type SavePoint
- type ScanEventDispatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandlerFunc ¶
type EventHandlerFunc func(*types.Transaction, *types.Receipt) error
type ReceiptDownloader ¶
receiptDownloader allows to download multiple receipts at the same time.
func NewReceiptDownloader ¶
func NewReceiptDownloader(client *ethclient.Client, concurrency int) *ReceiptDownloader
func (*ReceiptDownloader) Forget ¶
func (r *ReceiptDownloader) Forget(txid common.Hash)
Forget (deletes) an already downloaded transaction.
func (*ReceiptDownloader) Join ¶
func (r *ReceiptDownloader) Join()
Join waits until all background jobs stopped
func (*ReceiptDownloader) Request ¶
func (r *ReceiptDownloader) Request(txid common.Hash)
Request to download a transaction.
func (*ReceiptDownloader) Stats ¶
func (r *ReceiptDownloader) Stats() (queuelen, pendinglen int)
Stats retrieves the status.
type ReceiptTask ¶
type ReceiptTask struct { Tx common.Hash Err error Receipt *types.Receipt // contains filtered or unexported fields }
receiptTask is a single receipt download task.
type ScanEventDispatcher ¶
func NewScanEventDispatcher ¶
func NewScanEventDispatcher(client *ethclient.Client, handler EventHandlerFunc, savepoint SavePoint, netid string) *ScanEventDispatcher
func (*ScanEventDispatcher) Join ¶
func (e *ScanEventDispatcher) Join()
Join waits all background jobs finished
func (*ScanEventDispatcher) Start ¶
func (e *ScanEventDispatcher) Start()
Start scanning the blockchain for events
func (*ScanEventDispatcher) Stop ¶
func (e *ScanEventDispatcher) Stop()
Stop scanning the blockchain for events
Click to show internal directories.
Click to hide internal directories.