Ocean/ConfigurationDB/Init.go

21 lines
530 B
Go
Raw Normal View History

package ConfigurationDB
import (
"github.com/SommerEngineering/Ocean/Configuration"
"github.com/SommerEngineering/Ocean/Log"
LM "github.com/SommerEngineering/Ocean/Log/Meta"
)
2015-06-17 15:44:52 +00:00
// The init function for this package.
func init() {
config := Configuration.Read()
// Connect to the database:
connectDatabase(config)
2015-06-17 15:44:52 +00:00
// Check the system configuration:
checkConfiguration()
2015-06-17 15:44:52 +00:00
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameDATABASE, `The configuration database is now ready.`)
}