projects
/
quanweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adds download support for files store in the QuanLib EFS.
[quanweb.git]
/
main
/
config.go
diff --git
a/main/config.go
b/main/config.go
index 7aa8195a7cdef376f27f08f79647f3ef78716651..3d0a6cfb69cb52e1df132bab809ae2cfbddd5597 100644
(file)
--- a/
main/config.go
+++ b/
main/config.go
@@
-1,10
+1,10
@@
package main
package main
-type
db
Config struct {
- user, pass, dbName string
+type
qw
Config struct {
+ user, pass, dbName
, efsBasePath
string
}
}
-func getConfig()
db
Config {
+func getConfig()
qw
Config {
// TODO: use a real password, and load config info from a file
// 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
"}
}
}