mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-29 18:16:47 +01:00
13 lines
302 B
Go
13 lines
302 B
Go
package filter
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grassrootseconomics/cic-chain-events/pkg/fetch"
|
|
)
|
|
|
|
// 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)
|
|
}
|