forward

package
v0.2.130 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArweaveFetcher added in v0.1.217

type ArweaveFetcher struct {
	*task.Task

	Output chan *Payload
	// contains filtered or unexported fields
}

Gets L1 (Arweave) interactions from the DB in batches Fills in last_sort_key for each interaction before emiting to the output channel

func NewArweaveFetcher added in v0.1.217

func NewArweaveFetcher(config *config.Config) (self *ArweaveFetcher)

func (*ArweaveFetcher) WithDB added in v0.1.217

func (self *ArweaveFetcher) WithDB(db *gorm.DB) *ArweaveFetcher

func (*ArweaveFetcher) WithInputChannel added in v0.1.217

func (self *ArweaveFetcher) WithInputChannel(input chan uint64) *ArweaveFetcher

func (*ArweaveFetcher) WithMonitor added in v0.1.217

func (self *ArweaveFetcher) WithMonitor(monitor monitoring.Monitor) *ArweaveFetcher

type Controller

type Controller struct {
	*task.Task
}

func NewController

func NewController(config *config.Config) (self *Controller, err error)

type InteractionStreamer added in v0.1.217

type InteractionStreamer struct {
	*task.Task

	// Current Syncer's block height
	Output chan *Payload
	// contains filtered or unexported fields
}

Produces current syncer's height

func NewInteractionStreamer added in v0.1.217

func NewInteractionStreamer(config *config.Config) (self *InteractionStreamer)

func (*InteractionStreamer) WithMonitor added in v0.1.217

func (self *InteractionStreamer) WithMonitor(monitor monitoring.Monitor) *InteractionStreamer

type Notification added in v0.2.36

type Notification struct {
	Interaction pgtype.JSONB `json:"interaction"`
	ContractId  string       `json:"contractId"`
	SrcTxId     string       `json:"srcTxId"`
}

type Payload added in v0.1.217

type Payload struct {
	First       bool
	Last        bool
	Interaction *model.Interaction
	SrcTxId     string
}

func (*Payload) IsFirst added in v0.1.217

func (self *Payload) IsFirst() bool

func (*Payload) IsLast added in v0.1.217

func (self *Payload) IsLast() bool

type Sequencer

type Sequencer struct {
	*task.Task

	// Current Syncer's block height
	Output chan uint64
	// contains filtered or unexported fields
}

Produces current syncer's height

func NewSequencer

func NewSequencer(config *config.Config) (self *Sequencer)

func (*Sequencer) WithDB

func (self *Sequencer) WithDB(db *gorm.DB) *Sequencer

func (*Sequencer) WithMonitor

func (self *Sequencer) WithMonitor(monitor monitoring.Monitor) *Sequencer

Jump to

Keyboard shortcuts

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