Documentation ¶
Overview ¶
Package client implements an rpc client for the bloomfilter, along with Add and Check methods.
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
}
Bloomfilter rpc client type
func New ¶
func New(address string) (*Bloomfilter, error)
New creates a new bloomfilter rpc client with address
func (*Bloomfilter) Add ¶
func (b *Bloomfilter) Add(elem []byte) error
Add element through bloomfilter rpc client
func (*Bloomfilter) AddBatch ¶
func (b *Bloomfilter) AddBatch(batch [][]byte) error
AddBatch adds a set of elements through bloomfilter rpc client
func (*Bloomfilter) Check ¶
func (b *Bloomfilter) Check(elem []byte) (bool, error)
Check present element through bloomfilter rpc client
func (*Bloomfilter) Union ¶
func (b *Bloomfilter) Union(that interface{}) (float64, error)
Union element through bloomfilter rpc client with sliding bloomfilters
Click to show internal directories.
Click to hide internal directories.