github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/neatdb/iterator.go (about)

     1  package neatdb
     2  
     3  type Iterator interface {
     4  	Next() bool
     5  
     6  	Error() error
     7  
     8  	Key() []byte
     9  
    10  	Value() []byte
    11  
    12  	Release()
    13  }
    14  
    15  type Iteratee interface {
    16  	NewIterator() Iterator
    17  
    18  	NewIteratorWithPrefix(prefix []byte) Iterator
    19  }