iblt

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIBLTSetSync

func NewIBLTSetSync(option ...IBLTOption) (genSync.GenSync, error)

Types

type IBLTOption

type IBLTOption func(option *ibltOptions)

func WithDataLen

func WithDataLen(length int) IBLTOption

func WithHashFunc

func WithHashFunc(hashFunc crypto.Hash) IBLTOption

func WithHashSync

func WithHashSync() IBLTOption

func WithMaxSyncRetries

func WithMaxSyncRetries(retries int) IBLTOption

func WithSymmetricSetDiff

func WithSymmetricSetDiff(diffNum int) IBLTOption

func WithTableSizeConstant

func WithTableSizeConstant(constant float64) IBLTOption

WithTableSizeConstant sets the table size by constant * symmetric difference. Default constant should be 1.5 according to the IBLT paper.

Jump to

Keyboard shortcuts

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