filter

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 5, 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 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 NewNoopFilter

func NewNoopFilter(o NoopFilterOpts) 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
}

Jump to

Keyboard shortcuts

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