gbloom

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT 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