configs

package
v0.0.0-...-bd22f50 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseConnection

func DatabaseConnection(config GlobalConfig) (*gorm.DB, error)

DatabaseConnection open connection to db

Types

type GlobalConfig

type GlobalConfig struct {
	Port             int
	DatabaseName     string
	DatabaseHostname string
	DatabaseUsername string
	DatabasePassword string
	DatabasePort     int
	DatabaseNameTest string
}

GlobalConfig application global configuration

func Config

func Config(configPath string) GlobalConfig

Config reads config from env to config struct

Jump to

Keyboard shortcuts

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