Versions in this module Expand all Collapse all v1 v1.0.4 Apr 20, 2023 v1.0.3 Apr 19, 2023 v1.0.2 Apr 19, 2023 v1.0.1 Apr 19, 2023 Changes in this version + const SchemeMongoDB + const SchemeMongoDBSRV + type ConnString struct + AppName string + AuthMechanism string + AuthMechanismProperties map[string]string + AuthMechanismPropertiesSet bool + AuthSource string + AuthSourceSet bool + Compressors []string + Connect ConnectMode + ConnectSet bool + ConnectTimeout time.Duration + ConnectTimeoutSet bool + Database string + DirectConnection bool + DirectConnectionSet bool + HeartbeatInterval time.Duration + HeartbeatIntervalSet bool + Hosts []string + J bool + JSet bool + LoadBalanced bool + LoadBalancedSet bool + LocalThreshold time.Duration + LocalThresholdSet bool + MaxConnIdleTime time.Duration + MaxConnIdleTimeSet bool + MaxConnecting uint64 + MaxConnectingSet 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 + RetryReads bool + RetryReadsSet bool + RetryWrites bool + RetryWritesSet bool + SRVMaxHosts int + SRVServiceName string + SSL bool + SSLCaFile string + SSLCaFileSet bool + SSLCertificateFile string + SSLCertificateFileSet bool + SSLClientCertificateKeyFile string + SSLClientCertificateKeyFileSet bool + SSLClientCertificateKeyPassword func() string + SSLClientCertificateKeyPasswordSet bool + SSLDisableOCSPEndpointCheck bool + SSLDisableOCSPEndpointCheckSet bool + SSLInsecure bool + SSLInsecureSet bool + SSLPrivateKeyFile string + SSLPrivateKeyFileSet bool + SSLSet bool + Scheme string + ServerSelectionTimeout time.Duration + ServerSelectionTimeoutSet bool + SocketTimeout time.Duration + SocketTimeoutSet bool + Timeout time.Duration + TimeoutSet bool + UnknownOptions map[string][]string + Username string + UsernameSet bool + WNumber int + WNumberSet bool + WString string + WTimeout time.Duration + WTimeoutSet bool + WTimeoutSetFromOption bool + ZlibLevel int + ZlibLevelSet bool + ZstdLevel int + ZstdLevelSet bool + func Parse(s string) (ConnString, error) + func ParseAndValidate(s string) (ConnString, error) + func (u *ConnString) HasAuthParameters() bool + func (u *ConnString) String() string + func (u *ConnString) Validate() error + type ConnectMode uint8 + const AutoConnect + const SingleConnect + func (c ConnectMode) String() string