Documentation ¶
Overview ¶
Package go_bloom_filter contains common data and interfaces needed to implement BloomFilters
Index ¶
Constants ¶
View Source
const ( HASHER_DEFAULT = "default" HASHER_OPTIMAL = "optimal" )
Variables ¶
View Source
var ( HashFactoryNames = map[string]HashFactory{ HASHER_DEFAULT: DefaultHashFactory, HASHER_OPTIMAL: OptimalHashFactory, } ErrImpossibleToTreat = fmt.Errorf("unable to union") MD5 = HashWrapper(md5.New()) SHA1 = HashWrapper(sha1.New()) CRC64 = HashWrapper(crc64.New(crc64.MakeTable(crc64.ECMA))) FNV64 = HashWrapper(fnv.New64()) FNV128 = HashWrapper(fnv.New128()) )
View Source
var EmptyConfig = Config{
N: 2,
P: .5,
}
Functions ¶
Types ¶
type BloomFilter ¶
type HashFactory ¶
Directories ¶
Path | Synopsis |
---|---|
Package bitset implements a bitset based on the bitset library
|
Package bitset implements a bitset based on the bitset library |
cmd
|
|
client
Client application that reads from keyboard add and checks operations with data to store to a BloomFilter by means of a rpc
|
Client application that reads from keyboard add and checks operations with data to store to a BloomFilter by means of a rpc |
server
Server application that registers a bloomfilter by means of a rpc
|
Server application that registers a bloomfilter by means of a rpc |
Package filter implements a BloomFilter based on an m-bit bit array, k hashfilters and configuration
|
Package filter implements a BloomFilter based on an m-bit bit array, k hashfilters and configuration |
Package rotate implements a sliding set of three BloomFilters: `previous`, `current` and `next` and the BloomFilter interface
|
Package rotate implements a sliding set of three BloomFilters: `previous`, `current` and `next` and the BloomFilter interface |
rpc
|
|
client
Package client implements a rpc client for the BloomFilter, along with Add and Check methods
|
Package client implements a rpc client for the BloomFilter, along with Add and Check methods |
server
Package server implements a rpc server for the BloomFilter, registering a BloomFilter and accepting a tcp listener
|
Package server implements a rpc server for the BloomFilter, registering a BloomFilter and accepting a tcp listener |
Package sonic registers a bloomfilter given a config and registers the service with consul
|
Package sonic registers a bloomfilter given a config and registers the service with consul |
Package testutil contains utils for the tests
|
Package testutil contains utils for the tests |
Click to show internal directories.
Click to hide internal directories.