Documentation ¶ Index ¶ func NewDatabase(config *Config) *gorm.DB func RegisterProviders(container *dig.Container) error type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDatabase ¶ func NewDatabase(config *Config) *gorm.DB func RegisterProviders ¶ func RegisterProviders(container *dig.Container) error Types ¶ type Config ¶ type Config struct { Host string `mapstructure:"host"` Port string `mapstructure:"port"` User string `mapstructure:"username"` Password string `mapstructure:"password"` Name string `mapstructure:"name"` } Source Files ¶ View all Source files config.go database.go provider.go Click to show internal directories. Click to hide internal directories.