Versions in this module Expand all Collapse all v0 v0.2.1 Oct 30, 2019 Changes in this version + func StartBloomHandlers(shutdownChan chan bool, bloomRequests chan chan *Retrieval, ...) + type Backend interface + BloomRequestsReceiver func() chan chan *Retrieval + ChainDb func() dbwrapper.Database + GetBlock func(ctx context.Context, fullHash common.Hash) *types.Block + GetLogs func(ctx context.Context, blockHash common.Hash) [][]*types.Log + GetMainBranchBlock func(height uint64) (*types.BlockHeader, error) + type Filter struct + func NewBlockFilter(backend Backend, block common.Hash, addresses []common.Address, ...) *Filter + func NewRangeFilter(backend Backend, begin, end int64, addresses []common.Address, ...) *Filter + func (f *Filter) Logs(ctx context.Context) ([]*types.Log, error) + type Matcher struct + func NewMatcher(filters [][][]byte) *Matcher + func (m *Matcher) Start(ctx context.Context, db dbwrapper.Database, sectionIds []uint64, begin uint64, ...) (*MatcherSession, error) + type MatcherSession struct + func (s *MatcherSession) Close() + func (s *MatcherSession) Error() error + func (s *MatcherSession) MultiGetQueryTaskLoop(ctx context.Context, bloomRequests chan chan *Retrieval) + type Retrieval struct + Bit uint + Bitsets [][]byte + Context context.Context + Error error + Sections []uint64