Documentation ¶
Overview ¶
package bloom implements bloom filters.
Bloom filters are probabilistic data structures that can be used to test whether an element is a member of a set.
The operations on bloom filters are the following:
1. Insert(x): insert x into the set.
2. Contains(x): check if x is in the set.
Index ¶
Constants ¶
View Source
const ( // RecommendedFalsePositiveRate is the recommended false positive rate // to use with bloom filters - 1%. RecommendedFalsePositiveRate float64 = 0.01 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type HasherType ¶
type HasherType int
const ( HasherTypeKeccak256 HasherType = iota HasherTypeMurmur32 )
Click to show internal directories.
Click to hide internal directories.