I was trying to search for default values for clientOptions for mongo-go-driver.
I am trying to initiate new client in following way:
opts := options.ClientOptions{}
opts.ApplyURI(connectionURI)
sharedConnection, err = mongo.NewClient(&opts)
I was wondering what will be the default values for few of the clientOptions like ConnectTimeout, MaxPoolSize, MaxConnIdleTime.
type ClientOptions struct {
ConnectTimeout *time.Duration
Compressors []string
Dialer ContextDialer
HeartbeatInterval *time.Duration
LocalThreshold *time.Duration
MaxConnIdleTime *time.Duration
MaxPoolSize *uint16
Monitor *event.CommandMonitor
ReadConcern *readconcern.ReadConcern
ReadPreference *readpref.ReadPref
Registry *bsoncodec.Registry
RetryWrites *bool
ServerSelectionTimeout *time.Duration
Direct *bool
SocketTimeout *time.Duration
TLSConfig *tls.Config
WriteConcern *writeconcern.WriteConcern
ZlibLevel *int
}