Versions in this module Expand all Collapse all v1 v1.4.0 May 26, 2021 Changes in this version + const HASHER_DEFAULT + const HASHER_OPTIMAL + var CRC64 = HashWrapper(crc64.New(crc64.MakeTable(crc64.ECMA))) + var EmptyConfig = Config + var ErrImpossibleToTreat = fmt.Errorf("unable to union") + var FNV128 = HashWrapper(fnv.New128()) + var FNV64 = HashWrapper(fnv.New64()) + var HashFactoryNames = map[string]HashFactory + var MD5 = HashWrapper(md5.New()) + var SHA1 = HashWrapper(sha1.New()) + func K(m, n uint) uint + func M(n uint, p float64) uint + type Bloomfilter interface + Add func([]byte) + Check func([]byte) bool + Union func(interface{}) (float64, error) + type Config struct + HashName string + N uint + P float64 + type EmptySet int + func (e EmptySet) Add(_ []byte) + func (e EmptySet) Check(_ []byte) bool + func (e EmptySet) Union(interface{}) (float64, error) + type Hash func([]byte) []uint + func DefaultHashFactory(k uint) []Hash + func HashWrapper(h hash.Hash) Hash + func OptimalHashFactory(k uint) []Hash + type HashFactory func(uint) []Hash Other modules containing this package github.com/devopsfaith/bloomfilter/v2