config

package
v0.0.0-...-b8a6b6b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MysqlConfig = MysqlConfigType{
	DbUser:     os.Getenv("MYSQL_USER"),
	DbPassword: os.Getenv("MYSQL_PASSWORD"),
	DbHost:     os.Getenv("MYSQL_HOST"),
	DbName:     os.Getenv("MYSQL_DATABASE"),
	DbPort:     os.Getenv("DB_PORT"),
}
View Source
var MysqlConnection = fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8mb4&parseTime=true&loc=Local", MysqlConfig.DbUser, MysqlConfig.DbPassword, MysqlConfig.DbHost, MysqlConfig.DbPort, MysqlConfig.DbName)

Functions

This section is empty.

Types

type MysqlConfigType

type MysqlConfigType struct {
	DbUser     string
	DbPassword string
	DbHost     string
	DbName     string
	DbPort     string
}

Jump to

Keyboard shortcuts

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