Adds download support for files store in the QuanLib EFS.
[quanweb.git] / main / config.go
index 7aa8195a7cdef376f27f08f79647f3ef78716651..3d0a6cfb69cb52e1df132bab809ae2cfbddd5597 100644 (file)
@@ -1,10 +1,10 @@
 package main
 
-type dbConfig struct {
-  user, pass, dbName  string
+type qwConfig struct {
+  user, pass, dbName, efsBasePath  string
 }
 
-func getConfig() dbConfig {
+func getConfig() qwConfig {
   // TODO:  use a real password, and load config info from a file
-  return dbConfig{user:"quanlib", pass:"quanlib", dbName:"quanlib"}
+  return qwConfig{user:"quanlib", pass:"quanlib", dbName:"quanlib", efsBasePath:"/arc/quanlib/efs"}
 }