BoltDB fixups

Unmarshalling needs well-defined structs, also swap pointers in few places where needed.

There are few more TODOS pending (like getting UpdatePackage fixed properly)
This commit is contained in:
Ettore Di Giacinto
2019-11-25 20:03:37 +01:00
parent 7bbd6d5e68
commit 62af9c81d5
4 changed files with 48 additions and 21 deletions

View File

@@ -38,11 +38,12 @@ type PackageSet interface {
RemovePackage(Package) error
GetPackageFiles(Package) ([]string, error)
SetPackageFiles(PackageFile) error
SetPackageFiles(*PackageFile) error
RemovePackageFiles(Package) error
}
type PackageFile struct {
ID int `storm:"id,increment"` // primary key with auto increment
PackageFingerprint string
Files []string
}