gbloom

package
v0.0.0-...-2bcc11b Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: GPL-3.0 Imports: 5 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 struct {
	// contains filtered or unexported fields
}

func New

func New(maxCount uint, maxFp float64, autoSave bool, savePath string) (*BloomFilter, error)

func (*BloomFilter) Add

func (bf *BloomFilter) Add(data []byte)

func (*BloomFilter) AddStr

func (bf *BloomFilter) AddStr(str string)

func (*BloomFilter) MightContain

func (bf *BloomFilter) MightContain(data []byte) bool

func (*BloomFilter) MightContainStr

func (bf *BloomFilter) MightContainStr(str string) bool

func (*BloomFilter) Reset

func (bf *BloomFilter) Reset() error

Jump to

Keyboard shortcuts

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