wrap

package
v0.0.0-...-3277539 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MongoClient

func MongoClient(vp *viper.Viper, field string) (client *mongo.Client, err error)

Types

type MongoConf

type MongoConf struct {
	Uri             string `mapstructure:"uri"`
	MinPoolSize     uint64 `mapstructure:"min_pool_size"`
	MaxPoolSize     uint64 `mapstructure:"max_pool_size"`
	TimeoutSecs     int    `mapstructure:"timeout_secs"`
	MaxConnIdleSecs int    `mapstructure:"max_conn_idle_secs"`
}

Jump to

Keyboard shortcuts

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