Documentation ¶
Index ¶
- type Accumulator
- type Vector
- func (v *Vector) FindLowerBound(begin, end int, bound negentropy.Bound) int
- func (v *Vector) Fingerprint(begin, end int) string
- func (v *Vector) GetBound(idx int) negentropy.Bound
- func (v *Vector) Insert(createdAt nostr.Timestamp, id string)
- func (v *Vector) Range(begin, end int) iter.Seq2[int, negentropy.Item]
- func (v *Vector) Seal()
- func (v *Vector) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accumulator ¶
type Accumulator struct {
Buf [32 + 8]byte // leave 8 bytes at the end as a slack for use in GetFingerprint append()
}
func (*Accumulator) AddAccumulator ¶
func (acc *Accumulator) AddAccumulator(other Accumulator)
func (*Accumulator) AddBytes ¶
func (acc *Accumulator) AddBytes(other []byte)
func (*Accumulator) GetFingerprint ¶
func (acc *Accumulator) GetFingerprint(n int) string
func (*Accumulator) Reset ¶
func (acc *Accumulator) Reset()
type Vector ¶
type Vector struct {
// contains filtered or unexported fields
}
func (*Vector) FindLowerBound ¶
func (v *Vector) FindLowerBound(begin, end int, bound negentropy.Bound) int
func (*Vector) Fingerprint ¶
Click to show internal directories.
Click to hide internal directories.