Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect()
Connect utilizes the viper config system and connects to the specified database. Because problems in the connection are almost always fatal to the successful continuation of the server daemon, if there are problems, it logs the problem and exits the main process.
func ConnectWithString ¶
func ConnectWithString(connString string)
func GetConnection ¶
GetConnection returns a pointer to the database connection
func IsConnected ¶
func IsConnected() bool
IsConnected returns a boolean if it has successfully connected to the Mensago server database
Types ¶
Click to show internal directories.
Click to hide internal directories.