wip: start container version of server

This commit is contained in:
Michael Hohn
2024-06-04 12:24:42 -07:00
committed by =Michael Hohn
parent 71838d3320
commit 0349961360
7 changed files with 430 additions and 24 deletions

View File

@@ -23,18 +23,14 @@ var (
mutex sync.Mutex
)
type StorageSingle struct {
CurrentID int
}
func NewStorageSingle(startingID int) *StorageSingle {
s := StorageSingle{CurrentID: startingID}
s := StorageSingle{currentID: startingID}
return &s
}
func (s *StorageSingle) NextID() int {
s.CurrentID += 1
return s.CurrentID
s.currentID += 1
return s.currentID
}
func (s *StorageSingle) SaveQueryPack(tgz []byte, sessionId int) (string, error) {