mongo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerOptions

type ContainerOptions struct {
	tc.ContainerOptions
	User     string
	Password string
}

ContainerOptions ...

type DBConfig

type DBConfig struct {
	tc.ContainerConfig
	Host     string
	Port     uint
	User     string
	Password string
}

DBConfig ...

func StartMongoContainer

func StartMongoContainer(ctx context.Context, options ContainerOptions) (mongoC testcontainers.Container, Config DBConfig, err error)

StartMongoContainer ...

func (DBConfig) ConnectionURI

func (c DBConfig) ConnectionURI() string

ConnectionURI ...

Jump to

Keyboard shortcuts

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