mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-26 08:46:46 +01:00
12 lines
232 B
Markdown
12 lines
232 B
Markdown
|
## Writing filters
|
||
|
|
||
|
Filters must conform to the interface:
|
||
|
|
||
|
```go
|
||
|
type Filter interface {
|
||
|
Execute(ctx context.Context, inputTransaction fetch.Transaction) (next bool, err error)
|
||
|
}
|
||
|
```
|
||
|
|
||
|
See examples in the `internal/filter` folder.
|