bfbits

package
v0.0.0-...-fea9c38 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BloomFilter

type BloomFilter interface {
	Add(item []byte) error
	Contains(item []byte) (bool, error)
}

func NewBloomFilter

func NewBloomFilter(size int, opts ...Option) BloomFilter

type HashFunc

type HashFunc func() hash.Hash64

type Option

type Option func(filter *bloomFilter)

func WithHashNum

func WithHashNum(n int) Option

func WithHasher

func WithHasher(f HashFunc) Option

Jump to

Keyboard shortcuts

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