ceremonyclient/node/store/kvdb.go

18 lines
371 B
Go
Raw Permalink Normal View History

2024-01-03 07:31:42 +00:00
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
2024-01-03 07:31:42 +00:00
Close() error
DeleteRange(start, end []byte) error
}