client

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

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) Close

func (b *Bloomfilter) Close()

Close bloomfilter rpc client

func (*Bloomfilter) Union

func (b *Bloomfilter) Union(that interface{}) (float64, error)

Union element through bloomfilter rpc client with sliding bloomfilters

Jump to

Keyboard shortcuts

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