Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomFilter ¶
type BloomFilter struct {
// contains filtered or unexported fields
}
BloomFilter encapsulates github.com/algds/bloom to conform to method signatures.
func NewBloomFilter ¶
func NewBloomFilter(m uint, hashes []bloom.Hash) *BloomFilter
NewBloomFilter creates a new instance of BloomFilter.
func (*BloomFilter) Add ¶
func (bf *BloomFilter) Add(value interface{})
Add a value to the set of values.
func (*BloomFilter) Check ¶
func (bf *BloomFilter) Check(value interface{}) bool
Check whether a value is in the set.
Click to show internal directories.
Click to hide internal directories.