package
0.0.25
Repository: https://github.com/adipurnama/go-toolkit.git
Documentation: pkg.go.dev

# Functions

NewFromConfig returns mongo *mongo.Database instance from yaml config file given config file contents: db: primary: username: <username> password: "<password>" host: mymongo.host.com port: 270017 schema: mymongo_db auth-db: admin conn: max-idle: 20 max-lifetime: 10m timeout: 5m max-open: 100 then we can call using : v := viper.New() ..
NewMongoDBClient returns new mongodb client using the go mongo-driver.