tulip

command module
v0.0.0-...-db2e390 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tulip - Simple stable bloomfilter web service

A simple go web service implementing SBF

Stable Learned Bloom Filters for Data Streams

More about setting filter values: https://hur.st/bloomfilter/

Usage

tulip -port 8080 -address 127.0.0.1 -state filterstate.json

Methods

POST
New

Create a new filter named name

  • filtersize number of cells in filter - m
  • hashfunctions number of hash functions - k
  • decay number of random deletes before insert
  • max max cell value
/bloom/new/<name>/<filtersize>/<hashfunctions>/<decay>/<max>
Add

Add a single value to filter. Value kan be anything, will be hashed k times with murmur3

/bloom/add/<name>/<value>
AddIfNotSet

Add single value to filter if value not exists in filter. Will not run random delete if value exists.

/bloom/addifnotset/<name>/<value>
Poster

Add multiple values to filter

/bloom/poster/<name>

Eg. filename.txt

value1
value2
value3
curl -X POST http://127.0.0.1:8080/bloom/poster/filtername --data-binary @filename.txt
Reset

Set all values in filter to zero

/bloom/reset/<name>
Destroy

Remove filter

/bloom/destroy/<name>
GET
Test

Check if value is present in filter

/bloom/test/<value>
List

List filters

/bloom/list
Info

Get info about filter

/bloom/info/<name>
Debug

Get debug info about filter

/bloom/debug/<name>
Save

Force saving of filterstate to disk

/bloom/save
Load

Force reload of filterstate from disk

/bloom/load

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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