Versions in this module Expand all Collapse all v0 v0.0.12 Aug 16, 2018 Changes in this version type ConnString + RetryWrites bool + RetryWritesSet bool v0.0.11 Aug 8, 2018 v0.0.10 Jul 26, 2018 v0.0.9 Jul 10, 2018 v0.0.8 Jun 25, 2018 Changes in this version type ConnString + Compressors []string + ZlibLevel int v0.0.7 Jun 12, 2018 v0.0.6 May 31, 2018 v0.0.5 May 17, 2018 Changes in this version type ConnString + MaxStaleness time.Duration + MaxStalenessSet bool v0.0.4 May 2, 2018 v0.0.3 Apr 18, 2018 Changes in this version + type ConnString struct + AppName string + AuthMechanism string + AuthMechanismProperties map[string]string + AuthSource 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 + MaxConnLifeTime time.Duration + MaxConnsPerHost uint16 + MaxConnsPerHostSet bool + MaxIdleConnsPerHost uint16 + MaxIdleConnsPerHostSet bool + Options map[string][]string + Original string + Password string + PasswordSet bool + ReadConcernLevel string + ReadPreference string + ReadPreferenceTagSets []map[string]string + ReplicaSet string + SSL bool + SSLCaFile string + SSLCaFileSet bool + SSLClientCertificateKeyFile string + SSLClientCertificateKeyFileSet bool + SSLClientCertificateKeyPassword func() string + SSLClientCertificateKeyPasswordSet bool + SSLInsecure bool + SSLInsecureSet bool + SSLSet bool + 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 + func Parse(s string) (ConnString, error) + func (u *ConnString) String() string + type ConnectMode uint8 + const AutoConnect + const SingleConnect