Impl delete find filters for boltdb
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user