package connstring
import "go.mongodb.org/mongo-driver/mongo/connstring"
Index ¶
Types ¶
type ConnString ¶
type ConnString struct { Original string AppName string AuthMechanism string AuthMechanismProperties map[string]string AuthSource string Connect ConnectMode ConnectTimeout time.Duration Database string HeartbeatInterval time.Duration Hosts []string J bool JSet bool LocalThreshold time.Duration MaxConnIdleTime time.Duration MaxConnLifeTime time.Duration MaxConnsPerHost uint16 MaxConnsPerHostSet bool MaxIdleConnsPerHost uint16 MaxIdleConnsPerHostSet bool Password string PasswordSet bool ReadConcernLevel string ReadPreference string ReadPreferenceTagSets []map[string]string ReplicaSet string ServerSelectionTimeout time.Duration SocketTimeout time.Duration SSL bool SSLInsecure bool SSLCaFile string SSLCaFileSet bool WString string WNumber int WNumberSet bool Username string WTimeout time.Duration WTimeoutSet bool Options map[string][]string UnknownOptions map[string][]string }
ConnString represents a connection string to mongodb.
func Parse ¶
func Parse(s string) (ConnString, error)
Parse parses the provided uri and returns a URI object.
func (*ConnString) String ¶
func (u *ConnString) String() string
type ConnectMode ¶
type ConnectMode uint8
ConnectMode informs the driver on how to connect to the server.
const ( AutoConnect ConnectMode = iota SingleConnect )
ConnectMode constants.
Source Files ¶
connstring.go
- Version
- v0.0.1
- Published
- Feb 13, 2018
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 2 hours ago –
Tools for package owners.