bloom

package
v1.5.1-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: BSD-3-Clause Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMaxBytes = fmt.Errorf("too large")

Functions

This section is empty.

Types

type Filter

type Filter interface {
	// Add adds to filter, assumed thread safe
	Add(...[]byte)

	// Check checks filter, assumed thread safe
	Check([]byte) bool
}

func New

func New(maxN uint64, p float64, maxBytes uint64) (Filter, error)

func NewMap

func NewMap() Filter

Jump to

Keyboard shortcuts

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