mongo

package
v0.0.0-...-4a875e6 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 10 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 {
	ConnectTimeout int      `yaml:"connectTimeout"`
	DbName         string   `yaml:"dbName"`
	Hosts          []string `yaml:"hosts"`
	Password       string   `yaml:"password"`
	PoolSize       int      `yaml:"poolSize"`
	ReadConcern    string   `yaml:"readConcern"`
	ReadPreference string   `yaml:"readPreference"`
	SocketTimeout  int      `yaml:"socketTimeout"`
	Uri            string   `yaml:"uri"`
	Username       string   `yaml:"username"`
	WriteConcern   string   `yaml:"writeConcern"`
}

func (*Config) MongoDatabase

func (mConfig *Config) MongoDatabase() *mongo.Database

Jump to

Keyboard shortcuts

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