initializers

package
v0.0.0-...-5e46497 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB is a global variable that represents the database connection

Functions

func InitDB

func InitDB(config *Config)

InitDB initializes the database connection

Types

type Config

type Config struct {
	DSN     string `mapstructure:"DSN"`
	API_URL string `mapstructure:"API_URL"`
}

func LoadConfig

func LoadConfig(path string) (config Config, err error)

Jump to

Keyboard shortcuts

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