filter

package
v0.1.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressFilter

type AddressFilter struct {
	// contains filtered or unexported fields
}

func (*AddressFilter) Execute

func (f *AddressFilter) Execute(transaction fetch.Transaction) (bool, error)

type AddressFilterOpts

type AddressFilterOpts struct {
	Logg logf.Logger
}

type Filter

type Filter interface {
	Execute(inputTransaction fetch.Transaction) (next bool, err error)
}

Filter defines a read only filter which must return next as true/false or an error

func NewAddressFilter

func NewAddressFilter(o AddressFilterOpts) Filter

func NewNoopFilter

func NewNoopFilter(o NoopFilterOpts) Filter

func NewTransferFilter

func NewTransferFilter(o TransferFilterOpts) Filter

type NoopFilter

type NoopFilter struct {
	// contains filtered or unexported fields
}

func (*NoopFilter) Execute

func (f *NoopFilter) Execute(transaction fetch.Transaction) (bool, error)

type NoopFilterOpts

type NoopFilterOpts struct {
	Logg logf.Logger
}

type TransferFilter

type TransferFilter struct {
	// contains filtered or unexported fields
}

func (*TransferFilter) Execute

func (f *TransferFilter) Execute(transaction fetch.Transaction) (bool, error)

type TransferFilterOpts

type TransferFilterOpts struct {
	Logg logf.Logger
}

Jump to

Keyboard shortcuts

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