cic-chain-events/pkg/filter/filter.go

13 lines
302 B
Go
Raw Normal View History

2023-01-05 12:45:09 +01:00
package filter
import (
"context"
2023-01-14 10:20:16 +01:00
"github.com/grassrootseconomics/cic-chain-events/pkg/fetch"
)
2023-01-05 12:45:09 +01:00
// Filter defines a read only filter which must return next as true/false or an error
type Filter interface {
Execute(ctx context.Context, inputTransaction fetch.Transaction) (next bool, err error)
2023-01-05 12:45:09 +01:00
}