ceremonyclient/node/store/iterator.go
Cassandra Heart 2e2a1e4789
v1.2.0 (#31)
2024-01-03 01:31:42 -06:00

23 lines
333 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
}
type TypedIterator[T proto.Message] interface {
First() bool
Next() bool
Valid() bool
Value() (T, error)
Close() error
}