config

package
v0.0.0-...-c43a9c1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB is an ORM for MYSQL database

Functions

func DbURL

func DbURL(dbConfig *DBConfig) string

DbURL is a function that returns the connected db url

Types

type DBConfig

type DBConfig struct {
	Host     string
	Port     int
	User     string
	DBName   string
	Password string
}

DBConfig represents db configuration

func BuildDBConfig

func BuildDBConfig(db *entities.DatabaseConfiguration) *DBConfig

BuildDBConfig is a function that builds the database config based on DBConfig structure

Jump to

Keyboard shortcuts

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