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