ceremonyclient/node/store/iterator.go

24 lines
346 B
Go
Raw 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
Last() bool
2024-01-03 07:31:42 +00:00
}
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
}