mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-25 16:46:45 +01:00
Mohamed Sohail
9d1b77e907
* devnet: snapshot * refactor: pass struct through pipeline fllters * refactor: replace timer with ticker * refactor: filters, jetstream emitter * add register filter * update gas filter * refactor: remove RPC fetcher support
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)
|
|
}
|