client

package
v0.0.0-...-4687d0b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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)

Add element through bloomfilter rpc client

func (*Bloomfilter) Check

func (b *Bloomfilter) Check(elem []byte) bool

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