mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-27 00:55:17 +00:00
5afabc401b
* v1.4.12 * small logging adjust
18 lines
371 B
Go
18 lines
371 B
Go
package store
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type KVDB interface {
|
|
Get(key []byte) ([]byte, io.Closer, error)
|
|
Set(key, value []byte) error
|
|
Delete(key []byte) error
|
|
NewBatch() Transaction
|
|
NewIter(lowerBound []byte, upperBound []byte) (Iterator, error)
|
|
Compact(start, end []byte, parallelize bool) error
|
|
CompactAll() error
|
|
Close() error
|
|
DeleteRange(start, end []byte) error
|
|
}
|