config

package
v0.0.0-...-d287852 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

DB containts information for current DB connection

Functions

func DBConfigBuilder

func DBConfigBuilder() string

DBConfigBuilder Create string of postgres gorm configuration

Types

type DBConfig

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

DBConfig represents db configuration

func (*DBConfig) Build

func (dbConfig *DBConfig) Build() string

Build = build string of postgres gorm configuration

Jump to

Keyboard shortcuts

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