Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnection ¶
GetConnection retrieves the database connection based on the DATABASE_TYPE environment variable.
It returns the *gorm.DB and *mongo.Client connections and an error.
func GetDataGorm ¶
func GetDataGorm(db *gorm.DB) ([]*domain.SMTPConfig, error)
func InsertSMTPConfig ¶
func InsertSMTPConfig(db *gorm.DB, smtpConfig domain.SMTPConfig) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.