type
Config
type Config struct {
DatabaseURL string
// AllowInsecureTransport permits plaintext or certificate verification
// bypasses for an explicitly selected local development fixture.
AllowInsecureTransport bool
ApplicationName string
ConnectTimeout time.Duration
ServerSelectionTimeout time.Duration
MaxConnectionIdleTime time.Duration
MaxPoolSize uint64
MinPoolSize uint64
}Runtime-only MongoDB connection behavior.
Source adapters/mongodb/mongodb.go:35
Fields
DatabaseURLstring- Credential-bearing URL selecting the application database.
AllowInsecureTransportbool- Allow an insecure local development connection; keep false in production.
ApplicationNamestring- Client application name; defaults to ridu.
ConnectTimeouttime.Duration- Connection bound; zero selects the Ridu default.
ServerSelectionTimeouttime.Duration- Primary-selection bound; zero selects the Ridu default.
MaxConnectionIdleTimetime.Duration- Pooled idle-time bound; zero selects the Ridu default.
MaxPoolSizeuint64- Maximum pool size; zero selects ten.
MinPoolSizeuint64- Minimum pool size; cannot exceed MaxPoolSize.
DatabaseURL never belongs in manifests, artifacts, generated contracts, or diagnostics. Negative durations and invalid pool bounds are rejected.