Commit 74bf586

Richard Luby <richluby@gmail.com>
2017-01-06 06:55:23
added config options for database
if port does not equal zero, server concatenates address and port
1 parent a7ca8b1
Changed files (1)
server.go
@@ -31,6 +31,10 @@ type SERVER_CONFIG struct {
 	QUESTIONS string
 	// USER_TESTS stores the test results of users
 	USER_TESTS string
+	// DB_ADDRESS contains the address of the database
+	DB_ADDRESS string
+	// DB_PORT contains the port on which to connect to the database
+	DB_PORT int
 }
 
 // defaultSERVER_CONFIG is used when no SERVER_CONFIGuration file is given