bloom

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bloom

type Bloom struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) (*Bloom, error)

func (*Bloom) Add

func (b *Bloom) Add(v []byte)

func (*Bloom) Contain

func (b *Bloom) Contain(v []byte) bool

func (*Bloom) MaxElements

func (b *Bloom) MaxElements() uint64

func (*Bloom) SizeBytes

func (b *Bloom) SizeBytes() int

type Option

type Option func(b *Bloom)

func HashFunc

func HashFunc(h func() hash.Hash) Option

func Quantity

func Quantity(size uint64, rate float64) Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL