make map driver type for faster tests
This commit is contained in:
@@ -36,7 +36,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")
|
||||
as.Append(args.STRING, "driver-type", "database driver to use, [boltdb mongo map]", "map")
|
||||
as.Append(args.BOOL, "auth", "check for authorized access", false)
|
||||
as.Append(args.DURATION, "authlifetime", "duration auth is valid for", time.Hour)
|
||||
as.Append(args.DURATION, "delay", "time to delay requests", time.Duration(0))
|
||||
@@ -55,7 +55,7 @@ func New() Config {
|
||||
FilePrefix: as.GetString("fileprefix"),
|
||||
FileRoot: as.GetString("fileroot"),
|
||||
Database: as.GetString("database"),
|
||||
DriverType: as.GetString("drivertype"),
|
||||
DriverType: as.GetString("driver-type"),
|
||||
Auth: as.GetBool("auth"),
|
||||
AuthLifetime: as.GetDuration("authlifetime"),
|
||||
Delay: as.GetDuration("delay"),
|
||||
|
||||
Reference in New Issue
Block a user