app

package
v0.0.0-...-1fc76d6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func GetDB

func GetDB() *gorm.DB

func LoadEnv

func LoadEnv()

func MigrateDB

func MigrateDB(db *gorm.DB)

func SetupDB

func SetupDB(dbUrl string, config *gorm.Config) *gorm.DB

Types

type Config

type Config struct {
	Host        string
	Port        string
	DatabaseURL string
	Prefork     bool
}

func FromEnv

func FromEnv() Config

func (Config) URL

func (c Config) URL() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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