Documentation ¶
Overview ¶
Package bloom implements Bloom filters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryMarshalLength ¶
BinaryMarshalLength returns the length of a binary marshaled filter ( in bytes ) using the optimal configuration for the given number of elements with the desired false positive rate.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter represents the state of the Bloom filter
func UnmarshalBinary ¶
UnmarshalBinary restores the state of the filter from raw data
func UnmarshalJSON ¶
UnmarshalJSON defines how this filter should be decoded from JSON
func (*Filter) MarshalBinary ¶
MarshalBinary defines how this filter should be encoded to binary
func (*Filter) MarshalJSON ¶
MarshalJSON defines how this filter should be encoded to JSON
Click to show internal directories.
Click to hide internal directories.