mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 00:55:17 +00:00
24 lines
346 B
Go
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
|
|
}
|