bgo

package module
v0.0.0-...-78bde44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 10 Imported by: 3

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

func Database

func Database() string

Database returns configured mongo database name.

func SetTestDB

func SetTestDB()

SetTestDB set ClientOptions to 127.0.0.1/TestDBName

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL