Versions in this module Expand all Collapse all v1 v1.1.0 May 26, 2022 v1.0.0 May 26, 2022 Changes in this version + const SchemeMongoDB + const SchemeMongoDBSRV + type ConnString struct + AppName string + AuthMechanism string + AuthMechanismProperties map[string]string + AuthSource string + Compressors []string + Connect ConnectMode + ConnectSet bool + ConnectTimeout time.Duration + ConnectTimeoutSet bool + Database string + HeartbeatInterval time.Duration + HeartbeatIntervalSet bool + Hosts []string + J bool + JSet bool + LocalThreshold time.Duration + LocalThresholdSet bool + MaxConnIdleTime time.Duration + MaxConnIdleTimeSet bool + MaxPoolSize uint64 + MaxPoolSizeSet bool + MaxStaleness time.Duration + MaxStalenessSet bool + MinPoolSize uint64 + MinPoolSizeSet bool + Options map[string][]string + Original string + Password string + PasswordSet bool + ReadConcernLevel string + ReadPreference string + ReadPreferenceTagSets []map[string]string + ReplicaSet string + RetryWrites bool + RetryWritesSet bool + SSL bool + SSLCaFile string + SSLCaFileSet bool + SSLClientCertificateKeyFile string + SSLClientCertificateKeyFileSet bool + SSLClientCertificateKeyPassword func() string + SSLClientCertificateKeyPasswordSet bool + SSLInsecure bool + SSLInsecureSet bool + SSLSet bool + Scheme string + ServerSelectionTimeout time.Duration + ServerSelectionTimeoutSet bool + SocketTimeout time.Duration + SocketTimeoutSet bool + UnknownOptions map[string][]string + Username string + WNumber int + WNumberSet bool + WString string + WTimeout time.Duration + WTimeoutSet bool + WTimeoutSetFromOption bool + ZlibLevel int + ZlibLevelSet bool + func Parse(s string) (ConnString, error) + func (u *ConnString) String() string + type ConnectMode uint8 + const AutoConnect + const SingleConnect