mongodb

package
v0.0.0-...-074b23b Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

Types

type DBConfig

type DBConfig struct {
	Host string `envconfig:"DB_HOST" default:"0.0.0.0" required:"true" desc:"Hostname or IP of the database server"`
	Port int    `envconfig:"DB_PORT" default:"27017" required:"true" desc:"Port of the database server"`
	User string `envconfig:"DB_USER" required:"true" desc:"User for authentication in the database"`
	Pass string `envconfig:"DB_PASSWORD" required:"true" desc:"Password for authentication in the database"`
	Name string `envconfig:"DB_NAME" required:"true" desc:"Name of the database"`
	Mech string `envconfig:"DB_MECH" required:"false" desc:"Authentication mechanism of the database (optional)"`
}

DBConfig represents environment variable configuration parameters for database.

Jump to

Keyboard shortcuts

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