process

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHyperBlockProcessor

func NewHyperBlockProcessor(args *HyperBlockProcessorArgs) (*hyperBlockProcessor, error)

NewHyperBlockProcessor will create a new instance of an hyper block processor

Types

type AlteredAccountsHandler

type AlteredAccountsHandler interface {
	ProcessAccounts(apiAlteredAccounts []*outport.AlteredAccount) ([]*schema.AccountBalanceUpdate, error)
}

AlteredAccountsHandler defines what an account processor shall do

type EpochStartInfoHandler

type EpochStartInfoHandler interface {
	ProcessEpochStartInfo(apiEpochInfo *api.EpochStartInfo) (*schema.EpochStartInfo, error)
}

EpochStartInfoHandler defines what epoch start info processor shall do

type HyperBlockProcessorArgs

type HyperBlockProcessorArgs struct {
	TransactionHandler    TransactionHandler
	ShardBlockHandler     ShardBlocksHandler
	EpochStartInfoHandler EpochStartInfoHandler
}

HyperBlockProcessorArgs holds all input dependencies required by hyper block processor in order to create a new hyper block processor

type LogHandler

type LogHandler interface {
	ProcessLog(log *transaction.ApiLogs) *schema.Log
}

LogHandler defines what a log processor shall do

type ReceiptHandler

type ReceiptHandler interface {
	ProcessReceipt(apiReceipt *transaction.ApiReceipt) (*schema.Receipt, error)
}

ReceiptHandler defines what a receipt processor shall do

type ShardBlocksHandler

type ShardBlocksHandler interface {
	ProcessShardBlocks(apiBlocks []*api.NotarizedBlock) ([]*schema.ShardBlocks, error)
}

ShardBlocksHandler defines what shard blocks processor shall do

type TransactionHandler

type TransactionHandler interface {
	ProcessTransactions(apiTransactions []*transaction.ApiTransactionResult) ([]*schema.Transaction, error)
}

TransactionHandler defines what a transaction processor shall do

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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