Code refactor #66

Merged
lash merged 9 commits from wip-main-refactor into master 2024-09-19 20:19:17 +02:00
Showing only changes of commit 96358959b4 - Show all commits

View File

@ -13,14 +13,6 @@ import (
"git.defalsify.org/vise.git/resource" "git.defalsify.org/vise.git/resource"
) )
func ensureDbDir(dbDir string) error {
err := os.MkdirAll(dbDir, 0700)
if err != nil {
return fmt.Errorf("state dir create exited with error: %v\n", err)
}
return nil
}
type StorageService interface { type StorageService interface {
GetPersister(dbDir string, ctx context.Context) (*persist.Persister, error) GetPersister(dbDir string, ctx context.Context) (*persist.Persister, error)
GetUserdataDb(dbDir string, ctx context.Context) db.Db GetUserdataDb(dbDir string, ctx context.Context) db.Db