Versions in this module Expand all Collapse all v1 v1.0.4 Jul 9, 2019 v1.0.3 Jun 6, 2019 v1.0.2 May 16, 2019 v1.0.1 Apr 18, 2019 v1.0.0 Mar 13, 2019 Changes in this version type ConnString + ZlibLevelSet bool v1.0.0-rc2 Mar 7, 2019 v1.0.0-rc1 Feb 22, 2019 v0 v0.3.0 Feb 1, 2019 v0.2.0 Jan 8, 2019 v0.1.0 Dec 6, 2018 Changes in this version + 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 uint16 + MaxPoolSizeSet bool + MaxStaleness time.Duration + MaxStalenessSet 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 + 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 + func Parse(s string) (ConnString, error) + func (u *ConnString) String() string + type ConnectMode uint8 + const AutoConnect + const SingleConnect