Versions in this module Expand all Collapse all v1 v1.2.1 Jan 8, 2020 v1.2.0 Dec 10, 2019 Changes in this version type ConnString + RetryReads bool + RetryReadsSet bool + ZstdLevel int + ZstdLevelSet bool v1.1.4 Dec 17, 2019 v1.1.3 Nov 5, 2019 v1.1.2 Oct 7, 2019 v1.1.1 Sep 5, 2019 v1.1.0 Aug 13, 2019 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