Documentation ¶
Index ¶
- Variables
- func DBConnStr() string
- func Error(err error, msg string, args ...interface{})
- func EstablishDBConn() error
- func Fatal(err error, msg string, args ...interface{})
- func InProduction() bool
- func Info(msg string, args ...interface{})
- func Load(key string) (string, error)
- func LoadRequired(key string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var DB sqlbuilder.Database
DB is the global database connection object.
Functions ¶
func DBConnStr ¶
func DBConnStr() string
DBConnStr generates the connection string used to connect with the database.
func Error ¶
Error reports a non-fatal error.
func EstablishDBConn ¶
func EstablishDBConn() error
EstablishDBConn establishes a connection with the database.
func Fatal ¶
Fatal reports a fatal error and panics.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.