check

package
v0.2.72 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	*task.Task

	// Finalized interactions
	Output chan int
	// contains filtered or unexported fields
}

Periodically gets the current network height from warp's GW and confirms bundle is FINALIZED

func NewChecker

func NewChecker(config *config.Config) (self *Checker)

Receives bundles that can be checked in bundlr

func (*Checker) WithClient

func (self *Checker) WithClient(client *bundlr.Client) *Checker

func (*Checker) WithInputChannel

func (self *Checker) WithInputChannel(input chan *Payload) *Checker

func (*Checker) WithMonitor

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

type Controller

type Controller struct {
	*task.Task
}

func NewController

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

Main class that orchestrates everything

type Payload

type Payload struct {
	InteractionId int
	BundlerTxId   string
}

type Poller

type Poller struct {
	*task.Task

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

Periodically gets the current network height from warp's GW and confirms bundle is FINALIZED

func NewPoller

func NewPoller(config *config.Config) (self *Poller)

For every network height, fetches unfinished bundles

func (*Poller) WithDB

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

func (*Poller) WithMonitor

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

func (*Poller) WithNetworkMonitor

func (self *Poller) WithNetworkMonitor(v *listener.NetworkMonitor) *Poller

type Store

type Store struct {
	*task.SinkTask[int]
	// contains filtered or unexported fields
}

Periodically saves the states SinkTask handles caching data and periodically calling flush function

func NewStore

func NewStore(config *config.Config) (self *Store)

func (*Store) WithDB

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

func (*Store) WithInputChannel

func (self *Store) WithInputChannel(input chan int) *Store

func (*Store) WithMonitor

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

Jump to

Keyboard shortcuts

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