Documentation ¶ Index ¶ func CreateMongoClient(ctx context.Context, dbOptions *models.DBOptions) *mongo.Client func CreatePostgresClient(ctx context.Context, dbOptions *models.DBOptions) *gorm.DB type Adapter Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CreateMongoClient ¶ func CreateMongoClient(ctx context.Context, dbOptions *models.DBOptions) *mongo.Client func CreatePostgresClient ¶ func CreatePostgresClient(ctx context.Context, dbOptions *models.DBOptions) *gorm.DB Types ¶ type Adapter ¶ type Adapter interface { CreateClient(ctx context.Context, options *models.DBOptions) interface{} } Source Files ¶ View all Source files interface.go mongo.go postgres.go redis.go Click to show internal directories. Click to hide internal directories.