cic-chain-events/cmd/filters.go
Mohammed Sohail 0ccdaa0345
feat: add stats api, fix pipeline exe
* added cUSD sample filters
* decouple stats from metrics
2023-01-06 11:32:20 +00:00

24 lines
440 B
Go

package main
import (
"github.com/grassrootseconomics/cic-chain-events/internal/filter"
)
func initAddressFilter() filter.Filter {
return filter.NewAddressFilter(filter.AddressFilterOpts{
Logg: lo,
})
}
func initTransferFilter() filter.Filter {
return filter.NewTransferFilter(filter.TransferFilterOpts{
Logg: lo,
})
}
func initNoopFilter() filter.Filter {
return filter.NewNoopFilter(filter.NoopFilterOpts{
Logg: lo,
})
}