configs

package
v0.0.0-...-2ae284d Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionDB

func ConnectionDB(config *Config) *gorm.DB

Types

type Config

type Config struct {
	DBHost     string `mapstructure:"mariadb_host"`
	DBUserName string `mapstructure:"mariadb_user"`
	DBPassword string `mapstructure:"mariadb_password"`
	DBName     string `mapstructure:"mariadb_db"`
	DBPort     string `mapstructure:"mariadb_port"`

	Environment string `toml:"ENVIRONMENT"`

	Host     string   `toml:"HOST"`
	Scheme   []string `toml:"SCHEME"`
	Version  string   `toml:"VERSION"`
	BasePath string   `toml:"BASEPATH"`
	Title    string   `toml:"TITLE"`
}

Jump to

Keyboard shortcuts

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