bloom

package
v0.0.0-...-e9c076f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NHashes = 3
	MaxSize = 10000000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	AddKey([]byte, ...HashFunc)
	MayContain([]byte, ...HashFunc) bool
	Read(io.Reader) error
	Write(io.Writer) error
}

func NewFilter

func NewFilter(maxSize uint) Filter

type HashFunc

type HashFunc = func(key []byte, hashFunctions []hash.Hash64) []uint

Jump to

Keyboard shortcuts

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