index

package
v0.0.0-...-1fd911f Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecureIndex

type SecureIndex struct {
	BloomFilter bitarray.BitArray // The blinded bloom filter, which is the main part of the index.
	DocID       int               // The document ID that this index is for.
	Size        uint64            // The number of buckets in the bloom filter.
	Hash        func() hash.Hash  // The hash function to be used for HMAC.
}

SecureIndex defines the elements in a secure index.

func (*SecureIndex) MarshalBinary

func (si *SecureIndex) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface.

func (*SecureIndex) UnmarshalBinary

func (si *SecureIndex) UnmarshalBinary(input []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.

Jump to

Keyboard shortcuts

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