mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 17:15:18 +00:00
6c567a04c1
* v1.4.20 base * add inmemory dev mock for hypergraph * add simple rdf + tr * Update config.go (#234) 2 of bootstrap nodes are going to be closed due to low performances. Will consider to replace with better specs. * go mod tidy * go mod tidy * bump name in readme --------- Co-authored-by: 0xOzgur <29779769+0xOzgur@users.noreply.github.com>
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
|
|
}
|