MCPcopy
hub / github.com/perkeep/perkeep / memIter

Struct memIter

pkg/sorted/mem.go:58–61  ·  view source on GitHub ↗

memIter converts from leveldb's iterator.Iterator interface, which operates on []byte, to Perkeep's index.Iterator, which operates on string.

Source from the content-addressed store, hash-verified

56// operates on []byte, to Perkeep's index.Iterator, which operates
57// on string.
58type memIter struct {
59 lit iterator.Iterator // underlying leveldb iterator
60 k, v *string // if nil, not stringified yet
61}
62
63func (s *memIter) Next() bool {
64 s.k, s.v = nil, nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected