mongodb

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMongoURL added in v1.4.0

func ParseMongoURL(rawURL string) (*mgo.DialInfo, error)

ParseMongoURL will parse a connection string and return a configured dialer

func PrepareTestContainer

func PrepareTestContainer(t *testing.T, version string) (cleanup func(), retURL string)

PrepareTestContainer calls PrepareTestContainerWithDatabase without a database name value, which results in configuring a database named "test"

func PrepareTestContainerWithDatabase

func PrepareTestContainerWithDatabase(t *testing.T, version, dbName string) (func(), string)

PrepareTestContainerWithDatabase configures a test container with a given database name, to test non-test/admin database configurations

Types

This section is empty.

Jump to

Keyboard shortcuts

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