Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToBytes ¶
func GenerateUniqueBloomName ¶
func GenerateUniqueBloomName() string
Types ¶
type BloomFilter ¶
func New ¶
func New(opts *Opts) *BloomFilter
New creates a new Bloom filter with the specified size and number of hash functions.
func (*BloomFilter) Add ¶
func (bf *BloomFilter) Add(key []byte)
Add adds a key to the Bloom filter.
func (*BloomFilter) Clear ¶
func (bf *BloomFilter) Clear()
func (*BloomFilter) Has ¶
func (bf *BloomFilter) Has(key []byte) bool
Has tests whether a key is in the Bloom filter.
func (*BloomFilter) Load ¶
func (bf *BloomFilter) Load() error
func (*BloomFilter) Save ¶
func (bf *BloomFilter) Save() error
Save saves the Bloom filter to a file.
Click to show internal directories.
Click to hide internal directories.