configs

package
v0.0.0-...-e5ef398 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MysqlUsername = "MYSQL_USERNAME"
	MysqlPassword = "MYSQL_PASSWORD"
	MysqlHost     = "MYSQL_HOST"
	MysqlSchema   = "MYSQL_SCHEMA"
	MysqlPort     = "MYSQL_PORT"
)
View Source
const (
	RedisHost   = "REDIS_HOST"
	RedisPort   = "REDIS_PORT"
	RedisSchema = "REDIS_SCHEMA"
	RedisExpire = "REDIS_EXPIRE"
)

Variables

This section is empty.

Functions

func GetClient

func GetClient() *redis.Client

func GetDatabaseInstance

func GetDatabaseInstance() *gorm.DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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