Documentation ¶
Index ¶
- Variables
- func GetSession(cnf *Config) (*mgo.Session, error)
- func LastSSLError() error
- func WaitForPrimary(session *mgo.Session, maxRetries uint, sleepDuration time.Duration) error
- func WaitForSession(cnf *Config, maxRetries uint, sleepDuration time.Duration) (*mgo.Session, error)
- type Config
- type SSLConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultMongoDBHost = "localhost" DefaultMongoDBPort = "27017" DefaultMongoDBAuthDB = "admin" DefaultMongoDBTimeout = "5s" DefaultMongoDBTimeoutDuration = time.Duration(5) * time.Second )
Functions ¶
func GetSession ¶
func LastSSLError ¶
func LastSSLError() error
LastSSLError returns the last error related to the DB connection SSL handshake
func WaitForPrimary ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.