bloom

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: BSD-3-Clause Imports: 15 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(arg any)

func (*Bloom) Contain

func (b *Bloom) Contain(arg any) bool

func (*Bloom) CopyTo added in v1.5.2

func (b *Bloom) CopyTo(dst *Bloom)

func (*Bloom) Dump added in v1.5.2

func (b *Bloom) Dump(w io.Writer) error

func (*Bloom) Restore added in v1.5.2

func (b *Bloom) Restore(r io.Reader) error

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