load

package
v0.2.171 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockDownloader

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

Gets the latest block

func NewBlockDownloader

func NewBlockDownloader(config *config.Config) (self *BlockDownloader)

func (*BlockDownloader) GetNewestBlock

func (self *BlockDownloader) GetNewestBlock() *arweave.Block

func (*BlockDownloader) WithClient

func (self *BlockDownloader) WithClient(client *arweave.Client) *BlockDownloader

func (*BlockDownloader) WithInputChannel

func (self *BlockDownloader) WithInputChannel(v chan *arweave.NetworkInfo) *BlockDownloader

type Controller

type Controller struct {
	*task.Task
}

func NewController

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

Main class that orchestrates functionalities

type Generator

type Generator struct {
	*task.Task

	Output chan *arweave.Transaction
	// contains filtered or unexported fields
}

Generates fake transactions

func NewGenerator

func NewGenerator(config *config.Config) (self *Generator)

type Parser

type Parser struct {
	*task.Task

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

Generates fake transactions

func NewParser

func NewParser(config *config.Config) (self *Parser)

func (*Parser) WithBlockDownloader

func (self *Parser) WithBlockDownloader(v *BlockDownloader) *Parser

func (*Parser) WithInputChannel

func (self *Parser) WithInputChannel(v chan *arweave.Transaction) *Parser

type Payload

type Payload struct {
	Interaction *model.Interaction
	BundleItem  *model.BundleItem
}

type Store

type Store struct {
	*task.SinkTask[*Payload]
	// 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 *Payload) *Store

Jump to

Keyboard shortcuts

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