fixsortkey

package
v0.2.256 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*task.Task
}

func NewController

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

Main class that orchestrates main syncer functionalities Setups listening and storing interactions

type Processor

type Processor struct {
	*task.Task
	// contains filtered or unexported fields
}

Gets all interactions per block from the database Updates sort key for each interaction Updates last sort key for each interaction that was pointing to the old sort key

func NewProcessor

func NewProcessor(config *config.Config) (self *Processor)

func (*Processor) WithDB

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

func (*Processor) WithInputChannel

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

type Sequencer

type Sequencer struct {
	*task.Task

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

Produces network info in a sequential order, but only from the specified range

func NewSequencer

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

func (*Sequencer) WithDB

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

func (*Sequencer) WithStart

func (self *Sequencer) WithStart(height uint64) *Sequencer

func (*Sequencer) WithStop

func (self *Sequencer) WithStop(height uint64) *Sequencer

Jump to

Keyboard shortcuts

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