mongo

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mongo is the mongo instance builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoIns

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

NewMongoIns creates a mongo client.

Types

type MongoOptions

type MongoOptions struct {
	URI         string
	Database    string
	Username    string
	Password    string
	Timeout     time.Duration
	MaxPoolSize uint64 `mapstructure:"max-pool-size"`
}

MongoOptions defines options for building a mongo client.

Jump to

Keyboard shortcuts

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