Fix storage modules types and interfaces to compile server

This commit is contained in:
Michael Hohn
2024-06-16 20:16:26 -07:00
committed by =Michael Hohn
parent 6229c08900
commit 8b310e43ad
6 changed files with 52 additions and 20 deletions

View File

@@ -1,6 +1,32 @@
package qldbstore
import (
"mrvacommander/pkg/common"
)
type DBLocation struct {
Prefix string
File string
}
type Storage interface {
FindAvailableDBs(analysisReposRequested []common.NameWithOwner) (not_found_repos []common.NameWithOwner,
analysisRepos *map[common.NameWithOwner]DBLocation)
}
type Visibles struct{}
type StorageQLDB struct{}
func NewStore(v *Visibles) (Storage, error) {
s := StorageQLDB{}
return &s, nil
}
func (s *StorageQLDB) FindAvailableDBs(analysisReposRequested []common.NameWithOwner) (
not_found_repos []common.NameWithOwner,
analysisRepos *map[common.NameWithOwner]DBLocation) {
// TODO implement
return nil, nil
}