ceremonyclient/node/store/iterator.go

23 lines
333 B
Go
Raw Permalink Normal View History

2023-09-09 23:45:47 +00:00
package store
import "google.golang.org/protobuf/proto"
2024-01-03 07:31:42 +00:00
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 {
2023-09-09 23:45:47 +00:00
First() bool
Next() bool
Valid() bool
Value() (T, error)
Close() error
}