mongo

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Uri         string `env:"MONGO_URI,required"`
	MaxPoolSize uint64 `env:"MONGO_MAX_POOL_SIZE,required"`
	MinPoolSize uint64 `env:"MONGO_MIN_POOL_SIZE,required"`
}

func NewConfig

func NewConfig() (*Config, error)

type Mongo

type Mongo struct {
	*mongod.Client
}

func NewMongo

func NewMongo(config *Config) (*Mongo, error)

Jump to

Keyboard shortcuts

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