Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TestDBName dbworker default test database name
TestDBName = "unittest"
)
Variables ¶
This section is empty.
Functions ¶
func ClientOptions ¶
func ClientOptions() *options.ClientOptions
ClientOptions return mongo db connection options, panic if the dbUrl not configured
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package dbworker receiver mongodb access request, and processed by one or more worker goroutines.
|
Package dbworker receiver mongodb access request, and processed by one or more worker goroutines. |
Package ensure defines a mechanism that ensures mongodb to setup index, capped collections etc.
|
Package ensure defines a mechanism that ensures mongodb to setup index, capped collections etc. |
Package testdb helps unit test with mongo db, by recreate mongo db.
|
Package testdb helps unit test with mongo db, by recreate mongo db. |
Click to show internal directories.
Click to hide internal directories.