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
}
func NewDefault ¶
func NewDefault(hashes uint32, size uint64) (*BloomFilter, error)
Returns an in-memory bloom filter that builds on the FNV hash
func (*BloomFilter) Delete ¶
func (bf *BloomFilter) Delete(key []byte) error
Deletes a key from the bloom filter
func (*BloomFilter) Insert ¶
func (bf *BloomFilter) Insert(key []byte) error
Inserts a key into the bloom filter
Click to show internal directories.
Click to hide internal directories.