Versions in this module Expand all Collapse all v1 v1.9.0 Jun 13, 2019 Changes in this version + var ErrIntOverflowBloom = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthBloom = fmt.Errorf("proto: negative length found during unmarshaling") + func FilterSizeForFalsePositiveRate(falsePositiveRate float64, elementCount int) int + type BloomFilter struct + Buckets []uint32 + NumSubhashes uint32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func NewFilterWithFalsePositiveRate(falsePositiveRate float64, elementCount int, maxBytes int) *BloomFilter + func NewFilterWithSize(bytes int, elementCount int) *BloomFilter + func (*BloomFilter) Descriptor() ([]byte, []int) + func (*BloomFilter) ProtoMessage() + func (f *BloomFilter) Add(hash []byte) + func (f *BloomFilter) FalsePositiveRate(elementCount int) float64 + func (f *BloomFilter) IsNotPresent(hash []byte) bool + func (f *BloomFilter) OverflowRate() float64 + func (f *BloomFilter) Remove(hash []byte) + func (f *BloomFilter) UpperBoundCount(hash []byte) int + func (m *BloomFilter) GetBuckets() []uint32 + func (m *BloomFilter) GetNumSubhashes() uint32 + func (m *BloomFilter) Marshal() (dAtA []byte, err error) + func (m *BloomFilter) MarshalTo(dAtA []byte) (int, error) + func (m *BloomFilter) Reset() + func (m *BloomFilter) Size() (n int) + func (m *BloomFilter) String() string + func (m *BloomFilter) Unmarshal(dAtA []byte) error + func (m *BloomFilter) XXX_DiscardUnknown() + func (m *BloomFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BloomFilter) XXX_Merge(src proto.Message) + func (m *BloomFilter) XXX_Size() int + func (m *BloomFilter) XXX_Unmarshal(b []byte) error v1.9.0-1ff617394086e2ac29d786b2c19a63288572383a Jun 6, 2019