Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + var ErrInvalidParms = errors.New("One of parameters was outside of allowed range") + var ErrUsage = errors.New(...) + type Bloom struct + Mtx sync.RWMutex + func JSONUnmarshal(dbData []byte) (*Bloom, error) + func New(params ...float64) (bloomfilter *Bloom, err error) + func NewWithBoolset(bs []byte, locs uint64) (bloomfilter *Bloom) + func (bl *Bloom) Add(entry []byte) + func (bl *Bloom) AddIfNotHas(entry []byte) (added bool) + func (bl *Bloom) AddIfNotHasTS(entry []byte) (added bool) + func (bl *Bloom) AddTS(entry []byte) + func (bl *Bloom) Clear() + func (bl *Bloom) ClearTS() + func (bl *Bloom) ElementsAdded() uint64 + func (bl *Bloom) FillRatio() float64 + func (bl *Bloom) FillRatioTS() float64 + func (bl *Bloom) Has(entry []byte) bool + func (bl *Bloom) HasTS(entry []byte) bool + func (bl *Bloom) JSONMarshal() []byte + func (bl *Bloom) JSONMarshalTS() []byte