configs

package
v0.0.0-...-c0c47de Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package configs database configs

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB GORM DB instance

Functions

func BuildDSN

func BuildDSN() string

BuildDSN build Postgresql's DSN

Types

type DBConfig

type DBConfig struct {
	Host     string `default:"0.0.0.0"`
	Port     string `default:"5432"`
	User     string `default:"postgres"`
	DBName   string `default:"postgres"`
	Password string `default:"postgres"`
}

DBConfig database configuration

func BuildDBConfig

func BuildDBConfig() *DBConfig

BuildDBConfig build DB config

Jump to

Keyboard shortcuts

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