Fix storage modules types and interfaces to compile server
This commit is contained in:
committed by
=Michael Hohn
parent
6229c08900
commit
8b310e43ad
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user