config

package
v0.0.0-...-487d63a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package config provides the database connection

Package config provides the database connection

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GormOpen

func GormOpen() (gormDB *gorm.DB, err error)

GormOpen is a function that returns a gorm database connection using initial configuration

Types

type DBConfig

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

DBConfig represents db configuration

Jump to

Keyboard shortcuts

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