config

package
v0.0.0-...-e86aa24 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabaseConnectionObject

func GetDatabaseConnectionObject(dbConfig DatabaseConfig) *gorm.DB

Types

type DatabaseConfig

type DatabaseConfig struct {
	Host     string
	Port     string
	User     string
	Password string
	Name     string
}

DatabaseConfig represents the database configuration

func LoadDatabaseConfig

func LoadDatabaseConfig() DatabaseConfig

LoadDatabaseConfig loads the database configuration from environment variables

Jump to

Keyboard shortcuts

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