configs

package
v0.0.0-...-531f784 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var SystemConfig structs.SystemConfig

Functions

func DbURL

func DbURL(dbConfig *DBConfig) string

func ParseSystemConfig

func ParseSystemConfig()

Types

type DBConfig

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

DBConfig represents db configuration

func BuildDBConfig

func BuildDBConfig() *DBConfig

Jump to

Keyboard shortcuts

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