mongodbx

package
v0.0.0-...-ed0dbbb Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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(app *configx.Application) (*mongo.Client, func(), error)

NewClient returns a new mongo client.

Types

type Container

type Container struct {
	*mongodb.MongoDBContainer
}

Container is used to represent a mongodb container.

func NewContainer

func NewContainer(c context.Context) (*Container, error)

NewContainer is used to create a new mongodb container.

func (*Container) RW

func (x *Container) RW(c context.Context) (*mongo.Client, error)

RW returns a read-write client.

Jump to

Keyboard shortcuts

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