Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidNumHashes = errors.New("numHashes must be positive") ErrInvalidNumEntries = errors.New("numEntries must be positive") )
Functions ¶
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is a thread-safe bloom filter.
func (*Filter) MarshalBinary ¶
MarshalBinary returns the binary representation of the filter.
func (*Filter) UnmarshalBinary ¶
UnmarshalBinary restores the filter from binary representation.
Click to show internal directories.
Click to hide internal directories.