()
| 8 | ) |
| 9 | |
| 10 | func InitMongoDB() *mongo.Client { |
| 11 | addr := viper.GetString("mongodb.addr") |
| 12 | client, err := mongo.Connect(context.Background(), options.Client().ApplyURI(addr)) |
| 13 | if err != nil { |
| 14 | panic(err) |
| 15 | } |
| 16 | return client |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected