Impl delete find filters for boltdb

This commit is contained in:
Bel LaPointe
2020-07-23 16:41:50 -06:00
parent 085150a7b5
commit bed265a228
13 changed files with 670 additions and 92 deletions

View File

@@ -6,6 +6,7 @@ type Config struct {
Port int
DBURI string
Database string
DriverType string
FilePrefix string
FileRoot string
}
@@ -18,6 +19,7 @@ func New() Config {
as.Append(args.STRING, "fileprefix", "path prefix for file service", "/__files__")
as.Append(args.STRING, "fileroot", "path to file hosting root", "/tmp/")
as.Append(args.STRING, "database", "database name to use", "db")
as.Append(args.STRING, "drivertype", "database driver to use", "boltdb")
if err := as.Parse(); err != nil {
panic(err)
@@ -29,5 +31,6 @@ func New() Config {
FilePrefix: as.GetString("fileprefix"),
FileRoot: as.GetString("fileroot"),
Database: as.GetString("database"),
DriverType: as.GetString("drivertype"),
}
}