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

11
pkg/store/kvstore.go Normal file
View file

@ -0,0 +1,11 @@
// Copyright (C) 2019 Marius Schellenberger
package store
type KVStore interface {
Get(string, interface{}) error
Set(string, interface{}) error
ForEach(func(string, []byte) error) error
ForEachPrefix(string, func(string, []byte) error) error
Delete(string) error
}