mongodbx

package
v0.0.0-...-b7dbb59 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (*mongo.Client, error)

NewClient returns a new mongo client.

func NewClientWithDSN

func NewClientWithDSN(dsn string) (*mongo.Client, error)

NewClientWithDSN returns a new mongo client with dsn.

Types

type Container

type Container struct {
	*mongodb.MongoDBContainer
}

Container is used to represent a mongodb container.

func NewContainer

func NewContainer(ctx contextx.Contextx) (*Container, error)

NewContainer returns a new mongodb container.

Jump to

Keyboard shortcuts

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