listener

package
v0.0.0-...-daf9264 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthInfo

type EthInfo struct {
	RPC         string
	ChainID     int32
	NetworkName string
}

type ListenData

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

func (*ListenData) IsIndexer

func (l *ListenData) IsIndexer() bool

func (*ListenData) Restart

func (l *ListenData) Restart(parent context.Context)

func (*ListenData) Run

func (l *ListenData) Run()

type Listener

type Listener interface {
	Run()
	Restart(parent context.Context)
	IsIndexer() bool
}

func NewListener

func NewListener(parentCtx context.Context, log *logan.Entry, pauseTime int, ethInfo EthInfo, masterQ data.MasterQ, metaData *config.MetaData, healthCheckChan chan Listener, abiPath string, lastBlock *big.Int, isIndexer bool) Listener

type RecipientInfo

type RecipientInfo struct {
	Recipient string
	Sender    string
	TxHash    common.Hash
}

type StateInfo

type StateInfo struct {
	Name      string
	LastBlock uint64
}

type TxInfo

type TxInfo struct {
	Recipient   string
	PaymentID   string
	NetworkFrom string
	NetworkTo   string
}

Jump to

Keyboard shortcuts

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