Versions in this module Expand all Collapse all v1 v1.0.9 Sep 5, 2025 Changes in this version + var ErrEmptyDump = errors.New("empty dump") + type CountingFilter struct + func NewCounting(n int, p float64) *CountingFilter + func NewCountingFromBytes(data []byte) (*CountingFilter, error) + func (f *CountingFilter) Add(data []byte) + func (f *CountingFilter) Remove(data []byte) + func (f *CountingFilter) Reset() + func (f *CountingFilter) Test(data []byte) bool + func (f *CountingFilter) ToBytes() ([]byte, error) + type CountingFilter64 struct + func NewCounting64(n int64, p float64) *CountingFilter64 + func NewCounting64FromBytes(data []byte) (*CountingFilter64, error) + func (f *CountingFilter64) Add(data []byte) + func (f *CountingFilter64) Remove(data []byte) + func (f *CountingFilter64) Reset() + func (f *CountingFilter64) Test(data []byte) bool + func (f *CountingFilter64) ToBytes() ([]byte, error) + type Filter struct + func New(n int, p float64) *Filter + func (f *Filter) Add(data []byte) + func (f *Filter) Reset() + func (f *Filter) Test(data []byte) bool + type Filter64 struct + func New64(n int64, p float64) *Filter64 + func (f *Filter64) Add(data []byte) + func (f *Filter64) Reset() + func (f *Filter64) Test(data []byte) bool + type LayeredFilter struct + func NewLayered(n int, p float64) *LayeredFilter + func (f *LayeredFilter) Add(data []byte) int + func (f *LayeredFilter) Reset() + func (f *LayeredFilter) Test(data []byte) (int, bool) + type LayeredFilter64 struct + func NewLayered64(n int64, p float64) *LayeredFilter64 + func (f *LayeredFilter64) Add(data []byte) int + func (f *LayeredFilter64) Reset() + func (f *LayeredFilter64) Test(data []byte) (int, bool)