Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatabaseConnection ¶
func DatabaseConnection(config GlobalConfig) (*gorm.DB, error)
DatabaseConnection open connection to db
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { Port int DatabaseName string DatabaseHostname string DatabaseUsername string DatabasePassword string DatabasePort int DatabaseNameTest string }
GlobalConfig application global configuration
func Config ¶
func Config(configPath string) GlobalConfig
Config reads config from env to config struct
Click to show internal directories.
Click to hide internal directories.