mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-25 08:05:17 +00:00
23 lines
333 B
Go
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
|
|
}
|