Versions in this module Expand all Collapse all v1 v1.0.1 Feb 24, 2023 v1.0.0 Feb 4, 2021 Changes in this version + func CalcFPRate(k, l uint8) float64 + type Filter struct + func NewFilter(minCapacity uint32, fpRate float64) *Filter + func NewFilterKL(minCapacity uint32, k, l uint8) *Filter + func (f *Filter) Add(data []byte) + func (f *Filter) Capacity() uint32 + func (f *Filter) Contains(data []byte) bool + func (f *Filter) FPRate() float64 + func (f *Filter) K() uint8 + func (f *Filter) L() uint8 + func (f *Filter) Reset() + func (f *Filter) Size() int