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.
Click to show internal directories.
Click to hide internal directories.