MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / MongoConfig

Struct MongoConfig

shared/db/mongodb.go:21–24  ·  view source on GitHub ↗

MongoConfig holds MongoDB connection configuration

Source from the content-addressed store, hash-verified

19
20// MongoConfig holds MongoDB connection configuration
21type MongoConfig struct {
22 URI string
23 Database string
24}
25
26// NewMongoConfig creates a new MongoDB configuration from environment variables
27func NewMongoDefaultConfig() *MongoConfig {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected