transform

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ReceiptAddressIndexShortName = "rcptaddr"

Variables

View Source
var HeaderOnlyMessageName = proto.MessageName(&pbtransform.HeaderOnly{})
View Source
var ReceiptFilterMessageName = proto.MessageName(&pbtransform.BasicReceiptFilter{})

Functions

func BasicReceiptFilterFactory

func BasicReceiptFilterFactory(indexStore dstore.Store, possibleIndexSizes []uint64) (*transform.Factory, error)

func NewHeaderOnlyTransformFactory added in v1.1.0

func NewHeaderOnlyTransformFactory(_ dstore.Store, _ []uint64) (*transform.Factory, error)

func NewNearBlockIndexProvider

func NewNearBlockIndexProvider(
	store dstore.Store,
	possibleIndexSizes []uint64,
	addresses map[string]bool,
	prefixSuffixPairs []*pbtransform.PrefixSuffixPair,
) *transform.GenericBlockIndexProvider

func NewNearBlockIndexer

func NewNearBlockIndexer(indexStore dstore.Store, indexSize uint64) (firecore.BlockIndexer[*pbnear.Block], error)

Types

type BasicReceiptFilter

type BasicReceiptFilter struct {
	Accounts          map[string]bool
	PrefixSuffixPairs []*pbtransform.PrefixSuffixPair
	// contains filtered or unexported fields
}

func (*BasicReceiptFilter) GetIndexProvider

func (p *BasicReceiptFilter) GetIndexProvider() bstream.BlockIndexProvider

func (*BasicReceiptFilter) String

func (p *BasicReceiptFilter) String() string

func (*BasicReceiptFilter) Transform

func (p *BasicReceiptFilter) Transform(readOnlyBlk *bstream.Block, in transform.Input) (transform.Output, error)

type HeaderOnlyFilter

type HeaderOnlyFilter struct{}

func (*HeaderOnlyFilter) String

func (p *HeaderOnlyFilter) String() string

func (*HeaderOnlyFilter) Transform

func (p *HeaderOnlyFilter) Transform(readOnlyBlk *bstream.Block, in transform.Input) (transform.Output, error)

type NearBlockIndexer

type NearBlockIndexer struct {
	BlockIndexer blockIndexer
}

func (*NearBlockIndexer) ProcessBlock

func (i *NearBlockIndexer) ProcessBlock(blk *pbnear.Block) error

Jump to

Keyboard shortcuts

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