ceremonyclient/node/store/iterator.go
Cassandra Heart 26195cef5f
v1.4.20 base
2024-06-21 01:07:57 -05:00

24 lines
346 B
Go

package store
import "google.golang.org/protobuf/proto"
type Iterator interface {
Key() []byte
First() bool
Next() bool
Prev() bool
Valid() bool
Value() []byte
Close() error
SeekLT([]byte) bool
Last() bool
}
type TypedIterator[T proto.Message] interface {
First() bool
Next() bool
Valid() bool
Value() (T, error)
Close() error
}