initial db refactoring

This commit is contained in:
ston1th 2019-09-09 08:27:51 +02:00
commit e47a874711
5 changed files with 192 additions and 57 deletions

View file

@ -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
}