Documentation
¶
Overview ¶
Package tu has Test Util functions
Index ¶
Constants ¶
View Source
const ( // MongosPort MongoDB mongos Port. MongosPort = "17000" // MongoDBS1PrimaryPort MongoDB Shard 1 Primary Port. MongoDBS1PrimaryPort = "17001" // MongoDBS1Secondary1Port MongoDB Shard 1 Secondary 1 Port. MongoDBS1Secondary1Port = "17002" // MongoDBS1Secondary2Port MongoDB Shard 1 Secondary 2 Port. MongoDBS1Secondary2Port = "17003" // MongoDBStandAlonePort MongoDB stand alone instance Port. MongoDBStandAlonePort = "27017" )
Variables ¶
This section is empty.
Functions ¶
func DefaultTestClient ¶
DefaultTestClient returns the default MongoDB connection used for tests. It is a direct connection to the primary server of replicaset 1.
func GetenvDefault ¶
GetenvDefault gets a variable from the environment and returns its value or the spacified default if the variable is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.