client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package client implements a 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
}

func New

func New(address string) (*BloomFilter, error)

func (*BloomFilter) Add

func (b *BloomFilter) Add(elem []byte) error

func (*BloomFilter) AddBatch

func (b *BloomFilter) AddBatch(batch [][]byte) error

func (*BloomFilter) Check

func (b *BloomFilter) Check(elem []byte) (bool, error)

func (*BloomFilter) Close

func (b *BloomFilter) Close()

func (*BloomFilter) Union

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

Jump to

Keyboard shortcuts

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