initial db refactoring
This commit is contained in:
parent
196b6959da
commit
e47a874711
5 changed files with 192 additions and 57 deletions
|
|
@ -14,10 +14,7 @@ type Store interface {
|
|||
Marshaler
|
||||
Dumper
|
||||
Restorer
|
||||
Get(string, interface{}) error
|
||||
Set(string, interface{}) error
|
||||
ForEach(func(string, []byte) error) error
|
||||
ForEachPrefix(string, func(string, []byte) error) error
|
||||
Delete(string) error
|
||||
KVStore
|
||||
Tx(writeable bool, f func(tx KVStore) error) error
|
||||
Close() error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue