mongotest

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DialTimeout   = 5 * time.Minute
	SocketTimeout = DialTimeout
)

Variables

This section is empty.

Functions

func DialOpts

func DialOpts() mongo.DialOpts

DialOpts returns mongo.DialOpts suitable for use in tests that operate against a real MongoDB server. The timeouts are chosen to avoid failures caused by slow I/O; we do not expect the timeouts to be reached under normal circumstances.

Types

This section is empty.

Jump to

Keyboard shortcuts

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