infrastructure

package
v0.0.0-...-cec8117 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoClient *mongo.Client
View Source
var Mongodb *mongo.Database

Functions

This section is empty.

Types

type Environment

type Environment struct {
	App       app                 `yaml:"app"`
	Databases map[string]database `yaml:"databases"`
	// contains filtered or unexported fields
}

func (*Environment) InitMongoDB

func (e *Environment) InitMongoDB() (client *mongo.Client, db *mongo.Database, err error)

func (*Environment) LoadConfig

func (env *Environment) LoadConfig()

func (*Environment) SetEnvironment

func (env *Environment) SetEnvironment()

Jump to

Keyboard shortcuts

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