Fix storage modules types and interfaces to compile server
This commit is contained in:
committed by
=Michael Hohn
parent
6229c08900
commit
8b310e43ad
@@ -1,13 +1,5 @@
|
||||
package qpstore
|
||||
|
||||
import (
|
||||
"mrvacommander/pkg/common"
|
||||
"mrvacommander/pkg/qldbstore"
|
||||
)
|
||||
|
||||
type Storage interface {
|
||||
NextID() int
|
||||
SaveQueryPack(tgz []byte, sessionID int) (storagePath string, error error)
|
||||
FindAvailableDBs(analysisReposRequested []common.NameWithOwner) (not_found_repos []common.NameWithOwner,
|
||||
analysisRepos *map[common.NameWithOwner]qldbstore.DBLocation)
|
||||
}
|
||||
|
||||
16
pkg/qpstore/qpstore.go
Normal file
16
pkg/qpstore/qpstore.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package qpstore
|
||||
|
||||
type Visibles struct{}
|
||||
|
||||
type StorageQP struct{}
|
||||
|
||||
func NewStore(v *Visibles) (Storage, error) {
|
||||
s := StorageQP{}
|
||||
|
||||
return &s, nil
|
||||
}
|
||||
|
||||
func (s *StorageQP) SaveQueryPack(tgz []byte, sessionID int) (storagePath string, error error) {
|
||||
// TODO implement
|
||||
return "", nil
|
||||
}
|
||||
Reference in New Issue
Block a user