mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
Add support for MongoDB Atlas
This commit is contained in:
@@ -2,6 +2,11 @@ package mongodb
|
||||
|
||||
// Config defines the config for storage.
|
||||
type Config struct {
|
||||
// Whether the DB is hosted on MongoDB Atlas
|
||||
//
|
||||
// Optional. Default is false
|
||||
Atlas bool
|
||||
|
||||
// Host name where the DB is hosted
|
||||
//
|
||||
// Optional. Default is "127.0.0.1"
|
||||
@@ -40,6 +45,7 @@ type Config struct {
|
||||
|
||||
// ConfigDefault is the default config
|
||||
var ConfigDefault = Config{
|
||||
Atlas: false,
|
||||
Host: "127.0.0.1",
|
||||
Port: 27017,
|
||||
Database: "fiber",
|
||||
|
Reference in New Issue
Block a user